Bare repo + Stow workflow for ~/dotfiles.
Topology
- Bare repo:
~/repos/dotfiles.git - Working tree:
~/dotfiles/ - Symlinks: managed by GNU Stow into
~/.config/and~/
Add a config
cd ~/dotfiles
mkdir -p <pkg>/.config/<pkg>
mv ~/.config/<pkg>/* <pkg>/.config/<pkg>/
stow <pkg>
git add . && git commit -m "add: <pkg>"
git push
Edit
Edit through symlink or working tree — same file. Then commit.
Restow after structure change
stow -R <pkg>