Brian Dunagan

November 13 2011
Git Tip: Better 'git log'

A while ago, I followed this blog’s advice and added a little color to ‘git log’. This original ‘git log’ command displays useful tidbits like 7c UUID, relative date, description, tag, and user.

But today, I wanted a bit more: an short absolute date and lines changed. Seeing the number of lines that changed per commit gives a better idea about the magnitude of the changes. Changing the date format was easy; adding the number of lines that changed was harder.

Below is a gist for the Ruby script I wrote. Instructions on setting it up as a Bash alias are embedded in it.

Migrating JIRA to Bugzilla iPhone Tip: Tether to your Mac
LinkedIn GitHub Email