Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Make my git log look pretty and readable


    In order to always have a good overview of what’s going on in our repository, we use git log. However, the build-in git log output format is not really suitable for everyday usage. In this lesson we will create a dedicated git alias lg which will printout a nicely formatted git log list.

    The example used in this video:

    lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches

    But there are more available on the web, just search for it :)