Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Viewing full version tree in git

Tags:

git

gitk

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?

like image 264
petersohn Avatar asked Oct 08 '22 21:10

petersohn


2 Answers

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
like image 343
knittl Avatar answered Oct 11 '22 09:10

knittl


  1. When I'm in my work place with terminal only, I use:

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

    enter image description here

  2. When the OS support GUI, I use:

    gitk --all

    enter image description here

  3. When I'm in my home Windows PC, I use my own GitVersionTree

    enter image description here

like image 143
checksum Avatar answered Oct 11 '22 10:10

checksum