Setting up a dotfiles repo Initial setup git init --bare $HOME/.myconfigs echo 'alias config="/usr/bin/git --git-dir=$HOME/.myconfigs/ --work-tree=$HOME"' >> $HOME/.zshrc source ~/.zshrc config config --local status.showUntrackedFiles no Adding first file to the repo config status config add .vimrc config commit -m "Add vimrc" config remote add origin https://www.github.com/username/repo.git config push origin master Setup other systems to use the repo echo 'alias config="/usr/bin/git --git-dir=$HOME/.myconfigs/ --work-tree=$HOME"' >> $HOME/.zshrc source ~/.zshrc echo ".myconfigs" >> .gitignore git clone --bare https://www.github.com/username/repo.git $HOME/.myconfigs config checkout config config --local status.showUntrackedFiles no