1

I have a branch in git and I am on that branch and not on master branch.
Using git log --graph I can only see linearly that I am on that branch. But I can not see that I have "splitted" from the master branch.
I.e. I see:

* b  
*     
*    
*    

Where b is the private branch I made and I was expecting to see:

*master  
* / *b  
*    
*  
*  

But I do see this in gitk. Is it not possible to get an accurate graph of the tree via command line?

Cratylus
  • 52,998
  • 69
  • 209
  • 339

1 Answers1

2

In order to see the same as in gitk, you would need at least a:

git log --branches

A more complete equivalent would be a:

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

I use a more complex alias in "How to display the tag name and branch name using git log --graph".

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • If you have some time to spare, could you please check out this one as well? Thank you in advance! http://stackoverflow.com/questions/17155436/can-git-figure-out-that-the-branch-to-be-merged-has-obsolete-changes – Cratylus Jun 17 '13 at 19:41
  • 1
    @Cratylus I have always time for a Stack Overflow user. – VonC Jun 17 '13 at 19:48