Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

gitman

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>.

But why?!

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.

Setup

  1. git init in your home directory
  2. Copy .gitignore and .gitman into your home directory
  3. Add the following lines to your .bashrc file:
    # add gitman
     if [ -f ~/.gitman ]; then
     . ~/.gitman
     fi
  4. Run source ~/.bashrc
  5. Be lazy and feel safe, because you only commit the files you explicitly whitelisted. 🚀

About

Manage all your important non-sensitive configurations via git

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages