Folks:
I have a /home/paulf/stow directory with contains subdirectories for each
of the packages whose dotfiles I want to manage, like:
/home/paulf/stow/alacritty
In each subdirectory, I have all the config files for that packages, under
git management. This means that the directory will look like this:
/home/paulf/stow/alacritty/.git
/home/paulf/stow/alacritty/.config/alacritty/alacritty.yml
This works well with stow (configs are now symlinks in $HOME).
I'd like to copy all of this to a git repo on gitlab. You would think you
could go to the ~/stow directory, "git init", then "git add" each
directory, and all is good. However, git looks inside the directories and
sees there are already .git directories there, and refuses to add the
directories and their contents to its repo. Instead, it wants you to use
"submodules", to wit:
git submodule add ./alacritty
This adds an *empty* alacritty subdirectory to the git repo, which isn't
useful.
I need a way to bring all these subdirectories and their contents under a
git repo so I can send it to gitlab. Any suggestions?
Paul