log

These commands will produce a more informative log when working at the command line.

$ git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset %C(yellow)(%ad)%Creset'

* d0c57af - (HEAD, origin/master, master) Initial version. (73 minutes ago) <Richard Weeks> (Fri Apr 3 15:16:49 2015 +0100)

Setting an alias for pretty logging.

Rich@RICH-PC ~/workspace/perl (master)

$ git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset-%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

Rich@RICH-PC ~/workspace/perl (master)

$ git lg

* b888b8b- (HEAD, origin/master, master) Merge branches. (1 year, 3 months ago) <Richard Weeks>

|\

| * 3f5fddb- (branch-1) Add test for value 24. (1 year, 3 months ago) <Richard Weeks>

| * f50a637- Add another test. (1 year, 3 months ago) <Richard Weeks>

* | e294d15- Change test 44. (1 year, 3 months ago) <Richard Weeks>

|/

* f39e358- Use shift operator. (1 year, 3 months ago) <Richard Weeks>

* d0c57af- Initial version. (1 year, 3 months ago) <Richard Weeks>