**mkdir for keeping track of dotfiles** * git init --bare $HOME/.dotfiles (or whatever name you want) **create an alias for laziness** * alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' **set git status to hide untrackes files** * dotfiles config --local status.showUntrackedFiles no **add the alias to you shell config** * echo "alias dotfiles='/usr/bin/git --git-dir$HOME/.dotfiles/ --work-tree=$HOME'" >> $HOME/.bashrc or just use a text editor **usage** * dotfiles status * dotfiles add .vimrc * dotfiles commit -m "Add vimrc" * dotfiles add .bashrc * dotfiles commit -m "Add bashrc" * dotfiles push *Setup elsewhere* **clone from github or whatever** * git clone --bare [git link](https://github.com/USERNAME/dotfiles.git) $HOME/.dotfiles add alias to shell config * alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' **checkout** * dotfiles checkout -- hiveface