git init --bare $HOME/.cfg
alias config='git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config remote add origin git@github.com:xelamanster/dotfiles.git
git clone --separate-git-dir=$HOME/.cfg git@github.com:xelamanster/dotfiles.git cfg-tmp
rsync --recursive --verbose --exclude '.git' cfg-tmp/ $HOME/
rm --recursive cfg-tmp
config config status.showUntrackedFiles no
config remote set-url origin git@github.com:xelamanster/dotfiles.git
config status
config add .gitconfig
config commit -m 'Add gitconfig'
config push