Tuesday, May 26, 2015

pimp up your git log

The following command will create a shell (unix\mac) command line shortcut called

git lg

it will show the "git log" in a short, readable and colorful way, and also  with a graph.

git config --global alias.lg "log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci)%Creset %Cblue%an%Creset' --abbrev-commit --date=short --graph"

example:

No comments:

Post a Comment