Viewing full version tree in git

petersohn picture petersohn · Mar 19, 2011 · Viewed 104.9k times · Source

I am using the command line version of Git and gitk. I want to see the full version tree, not just the part that is reachable from the currently checked out version. Is it possible?

Answer

knittl picture knittl · Mar 19, 2011

if you happen to not have a graphical interface available you can also print out the commit graph on the command line:

git log --oneline --graph --decorate --all

if this command complains with an invalid option --oneline, use:

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