Customize Git Log

We use git log many times a day, and having that long commit id doesn't help much. I like to keep it short, and GIT has provided log.abbrevCommit to do this from version 1.7.6.

git config --global log.abbrevCommit true

Also, we don't like details list all the time; and would prefer the oneline option as the default.

git config --global format.pretty oneline

Reference