After I did a clone of a repo, a new branch test
has been added to the origin
remote. But I still see:
$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master
What git command/s should I use to get the following output:
$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/origin/test
The git checkout remote branch question is not my question because that is happening after I see all the remote branch references.
I cannot clone the repo again because I have my local changes/commits in it.
So, how to bring the new remote branch references to my repo using git commands?
I am using a BitBucket repo that has the following branches:
Trials
git fetch
does not work:
$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master
$ git fetch
$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master
$ git fetch origin
$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master