For installing my dotfiles, you need to copy-paste these bash command :
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
echo ".dotfiles" >> .gitignore
git clone --bare https://github.com/yaniselbeilk/Dotfiles.git $HOME/.dotfiles
Checkout the actual content from the bare repository to your $HOME:
dotfiles checkout
I still didn't write a script for this case, so I let you the choice to remove or move these files in a directory backup.
Set the flag showUntrackedFiles to no on this specific (local) repository:
dotfiles config --local status.showUntrackedFiles no
The last part is to update all the submodules in the project :
dotfiles submodule update --init --recursive