I'm learning about git
and is using gitk
to visualize my history and branches.
I tried gitk
on a locally initialized repo, and it is able to show both branches that I made properly.
However, when I tried to launch gitk
to visualize a repo obtained using git clone
, gitk
only shows one of the branches.
This is what happen:
After I did a git clone
, I can see 1 branch locally:
$ git branch
* experiment
So I did git checkout -b master origin/master
to create my local tracking branch, now:
$ git branch
experiment
* master
Now I thought I'm having 2 local branches, so I happily launch gitk
, however, I can only see one branch:
I know of a way to view the hidden master
branch by doing gitk --all
:
But now I'm really curious why is gitk
not showing the local master
branch that I'm having here, does anyone have any idea?
Thanks!