March 7, 2017

Visualize the Git log as a tree

Simple git alias to visualize the Git history.

The tree in git log can be visualized with

git log --graph --oneline --decorate --date=relative --all

To create a shortcut, the following lines can be added to ~/.gitconfig:

    lg = log --graph --oneline --decorate --date=relative --all

More examples can be found on this Stackoverflow question.