see Drew DeVault's blog post
Just run following commands on new device:
cd ~
git init
git remote add origin git@personal.github.com:biaocy/dotfiles.git
git fetch
git checkout -f master
# Let's say we want to add our vim config to version control
git add -f .vimrc