I learn git and use gitk to visualize my history and branches.
I tried gitk in a locally initialized repo, and it can show both branches, which I did correctly.
However, when I tried to run gitk to visualize the repo obtained with git clone , gitk shows only one of the branches.
Here's what happens:
After I made git clone , I can see 1 branch locally:
$ git branch * experiment
So, I created git checkout -b master origin/master to create my local tracking branch:
$ git branch experiment * master
Now I thought that I have 2 local branches, so I happily run gitk , however I can only see one branch:

I know a way to view the hidden master branch by running gitk --all :

But now I'm really curious why gitk not showing the local master branch that I have, does anyone have any ideas?
Thanks!
source share