git init --bare $HOME/dotfiles
alias cfg='/usr/bin/git --git-dir=$HOME/dotfiles --work-tree=$HOME'
cfg config --local status.showUntrackFiles no
cfg remote add origin git@github.com:liuw/dotfiles.git
cfg config status.showUntrackedFiles no
cfg config user.name $NAME
cfg config user.email $EMAIL
git clone --separate-git-dir=$HOME/dotfiles git@github.com:liuw/dotfiles.git $HOME/conf-tmp
rsync --recursive --verbose --exclude '.git' $HOME/conf-tmp/ $HOME/
rm -rf conf-tmp
cfg status
cfg add .gitignore
cfg commit -m'Add gitignore'
cfg push origin