cd ~
echo ".cfg" >> .gitignore
git clone [email protected]:aaronzper/dotfiles.git ./.dotfiles-git --bare
alias dotfiles='git --git-dir=$HOME/.dotfiles-git/ --work-tree=$HOME'
dotfiles config --local status.showUntrackedFiles no
dotfiles checkout
Taken from here.