- To prevent weird circular dependencies, first execute:
echo ".cfg" >> .gitignore
- Then clone the repository to
$HOME/.cfg
:
git clone --bare https://github.com/Excse/dotfiles $HOME/.cfg
- Add the alias to your shell and disable untracked files being showed:
alias config='/usr/bin/git --git-dir=$HOME/.cfg --work-tree=$HOME'
config config --local status.showUntrackedFiles no
- Proceed to checkout
config checkout