Last Updated: February 25, 2016
·
786
· mrunelov

Git: Colored graph at the command line

Here's the end result:

Picture

And here's the .gitconfig:

[color]
        ui = always
[alias]
    graph = log --graph --all --oneline

Note: color could be set to auto as well.

With this in place you just write

git graph

in a repository to get the graph.

Here's a thread on the subject on Stack Overflow with more tips:

Pretty git branch graphs