Clone the dotfiles to your home directory
git clone --bare git@github.com:rjlaine/dotfiles.git ~/.dotfiles
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME checkout
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME config --local status.showUntrackedFiles noOnce you have the files in place, start a new shell. You will now have an alias dot for adding and storing dotfiles which points at the bare repo in ~/.dotfiles.
Examples
# Add a file, commit, and push
dot add ~/.dotfile
dot commit -m "hello world"
dot push
# Fetch and diff against origin
dot fetch
dot diff FETCH_HEAD