Friday, February 11, 2011

My git config

Git is so powerful yet simple. Some handy function/config is not turned on by default. We just need to turn it on.

1. Turn on colorful output.
git config --global color.ui true
2. Add alias like svn.
git config --global alias.st 'status'
git config --global alias.last 'cat-file commit HEAD'
3. View all the current configs.
git config -l
4. View all the possible configs.
man git-config

No comments:

Post a Comment