Dotfiles
bare git
Based on Atlassian’s Dotfiles: Best way to store in a bare git repository .
git init --bare $HOME/.dotfiles
alias dots='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dots dots --local status.showUntrackedFiles no
echo "alias dots='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> $HOME/.bashrc
Use dot
like git
to backup dotfiles, use across machines.