Setting up a new environment

Version control (ie. git) your home directory. The post below describes a process (and has further links to examples) of a way that moves the whole version control aspect away:

https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/

Chris