4 ms·
You need just 3 lines to start storing your dotfiles in git: cd ~ git init echo "*" >.git/info/exclude Enjoy!
by sam_lowry_ 8y ago
You need just 3 lines to start storing your dotfiles in git:
cd ~
git init
echo "*" >.git/info/exclude
Enjoy!
- arunix 8y agoCould you explain how this works/is meant to work?
- agazso 8y agoYou basically make your home dir a git repo and by default ignore everything inside it. When you want to store a dotfile in that repo, you have to force add it (`git add -f`) and it will be tracked. You can learn more about how git ignores things here: https://git-scm.com/docs/gitignore https://git-scm.com/docs/gitignore