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:
into a git log graph that helps you visualize each the current state of each branch like this:
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: