I have a problem with git-gui and git-bash in Windows.
- Clone existing repository in git-gui
- Branch->Checkout->Tracking Branch in git-gui
- Go to my repo in git-bash
- “git branch” in git-bash shows “master”
I was expecting to see my branch instead of “master”. Any idea? What did I miss?
As mention in git gui branch management , you need two steps in order to use a tracking branch.
Choosing a branch in “
Tracking Branch” isn’t enough.You need to create it as well, and switch to it.