Created
December 9, 2017 04:22
-
-
Save wi24rd/cdb40c309b3ce7382b00291743ec863b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> https://news.ycombinator.com/item?id=11070797 | |
StreakyCobra 667 days ago [-] | |
I use: | |
git init --bare $HOME/.myconf | |
alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME' | |
config config status.showUntrackedFiles no | |
where my ~/.myconf directory is a git bare repository. Then any file within the home folder can be versioned with normal commands like: | |
config status | |
config add .vimrc | |
config commit -m "Add vimrc" | |
config add .config/redshift.conf | |
config commit -m "Add redshift config" | |
config push | |
And so one… | |
No extra tooling, no symlinks, files are tracked on a version control system, you can use different branches for different computers, you can replicate you configuration easily on new installation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment