Posts for tips

git coolness

I am using git to track my home directory, using a branch for every pc I use. Tracking large directories like home can be quite annoying: git status for example will try to stat every file for changes, and produces a 3-4 page output where all the useful information is 3 pages up from your cursor! The same happens with git commit editor.

Luckily, git supports status.showUntrackedFiles option.

git config status.showUntrackedFiles no saves the option to you .git/config file. The results:

$ git status|wc -l
240
$ git config  status.showUntrackedFiles no
$ git status|wc -l
7

Nice stuff :)