Just my dotfiles
Bare git repo approach inspired by skx/dotfiles and this Atlassian post
This repository should be cloned/used as a "bare" repository, which lets git track files in your home directory
Step one: Clone as bare repo
git clone --bare git@github.com:skattyadz/dotfiles.git ~/dotfiles.git
Step two: Set up an alias
alias dotfiles="git --git-dir=$HOME/dotfiles.git --work-tree=$HOME"
Step three: Tell git to ignore untracked files
dotfiles config --local status.showUntrackedFiles no
Step three: See which files will be over-written in your current home directory:
dotfiles status -s -uno
Step four: When you're happy to replace them, do the necessary:
dotfiles checkout -b original_files -f
dotfiles commit -a -m 'original files'
dotfiles checkout master
Now you need to run the install scripts
Do this periodically
dotfiles pull
cd ~/dotfiles-scripts
./install
dotfiles add ~/path/to/my/file
dotfiles push origin master