Manage all your important non-sensitive configurations via git
You ever wanted to persist all your important configurations in a git repo, but were afraid of accidentally committing sensitive information?
Here is your solution: gitman!
The idea is that all your files are gitignored by default, but once you are sure you want to commit them, you can explicitly unignore them with gitman with a simple gitman <filename>.
Because I am a lazy b*****d, that's why. 😉
Having a * in the .gitignore file forces you to unignore all subdirectories.
You want to unignore ~/foo/bar/baz.txt?
You have to add entries for ~/foo, ~/foo/bar and ~/foo/bar/baz.txt.
That's what gitman does for you.
git initin your home directory- Copy
.gitignoreand.gitmaninto your home directory - Add the following lines to your
.bashrcfile:# add gitman if [ -f ~/.gitman ]; then . ~/.gitman fi
- Run
source ~/.bashrc - Be lazy and feel safe, because you only commit the files you explicitly whitelisted. 🚀