Clone the config
git clone --bare <git-repo-url> $HOME/dotfilesAlias dotfiles command. You can put this in the .bashrc or .zshrc
alias dotfiles='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'Checkout the bootstrap bash script first.
./bootstrap.shApply config
dotfiles checkoutYou might want to backup before checkout though as it will attempt to overwrite some already existing files
mkdir -p .dotfiles-backup && \
dotfiles checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \
xargs -I{} mv {} .dotfiles-backup/{}Also do this to hide untracked files
dotfiles config --local status.showUntrackedFiles no