A work in progress method of managing my common system configuration.
Clone into a bare repository in $HOME
:
git clone --bare https://github.com/ChezCrawford/config.git $HOME/.cfg
Add the alias to the current shell scope:
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
Checkout the actual content into $HOME
:
config checkout
Hide all the untracked files:
config config --local status.showUntrackedFiles no
Heavily inspired by (copied from) durdn/cfg.
The tutorial can be found at Atlassian Dotfiles Tutorial.