Visualize your GIT commit history

Here's a great tip from a colleague of mine. When using the terminal, visualizing my commit history is a pain. But a simple command can change a boring, hard to read commit log like this:

git log

into a git log graph that helps you visualize each the current state of each branch like this:

git log graph

Here's the command:

$ git log --pretty=oneline --graph --decorate --all

Alternatively, you can set up a global alias with the following command and then use the git tr command to view the graph log:

git config --global alias.lg "log --pretty=oneline --graph --decorate --all"  

Heres what the manpages says about this command:

http://explainshell.com/explain?cmd=git+log+--pretty%3Doneline+--graph+--decorate+--all


References

http://explainshell.com/explain?cmd=git+log+--pretty%3Doneline+--graph+--decorate+--all

comments powered by Disqus