You need just 3 lines to start storing your dotfiles in git:
cd ~
git init
echo "*" >.git/info/exclude
Enjoy! cd ~
git init
echo "*" >.git/info/exclude
Enjoy!You can learn more about how git ignores things here: https://git-scm.com/docs/gitignore