Note: change $REPOPATH to wherever you'd like to clone the bare repository and $REPOALIAS to whatever you want the alias to the repo be.
Just follow this steps:
$ REPOPATH="$HOME/doc/dotfiles"
$ REPOALIAS="dots"
$ echo "alias $REPOALIAS='/usr/bin/git --git-dir=$REPOPATH --work-tree=$HOME'" >> $HOME/.zshrc
$ source ~/.zshrc
$ git clone --bare https://www.github.com/gabrielzschmitz/dotfiles.git $REPOPATH
Note: if checkout is impossible try to 'rm' and 'rm -rf' all the files/folders that are appearing as a conflict.
$ $REPOALIAS checkout
$ $REPOALIAS config --local status.showUntrackedFiles no
The following software were riced:
This project is licensed under the GPL-3 license.