Prettify your git log
git log
can be quite verbose and may difficult to find a specific commit when your repository have several branches.
Here is an alias that will prettify your logs:
$ 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"
Result as shown in the screenshot:
Source (FR): http://putaindecode.fr/posts/git/boutez-les-bugs-domptez-votre-historique/
Written by Louis LIN
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#