echo "alias dotfiles='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc
source .bashrcAssuming SSH, otherwise clone through token on https://github.com/codepr/dotfiles.git
git clone --bare git@github.com:codepr/dotfiles.git $HOME/.cfgdotfiles checkoutBe careful with any dotfile to be kept or removed if not needed (e.g. existing .bashrc etc)
Optionally set status.ShowUntrackedFiles no to reduce the noise when running status command
dotfiles config --local status.ShowUntrackedFiles noThis will set up a git repository, you can use all the common git command from now on, .cfg will store the .git tracking folder.