I host on BitBucket when I git clone a repository or use git pull origin master and git pull origin myBranch it does pull second time, but when I list branches with git branch -v I only see master. Doing git status shows nothing too.
How do I pull all of the branches off the web repo to my local repo?
Could it be that it’s because I changed computers and name on the git settings changed so it only lets me get master since it’s the default branch and the other one can be only accessed by whoever created it?
The branches do exist but you can’t see them
Try using this:
You’ll now see the list of remote branches in
origine.g.Output:
and you can then
You can also get the same list with
git branch -v --allwhich includes the most recent commit info, i.e.output:
git branch -v(without--all) only shows branches you’ve worked on.When you use
--allyou see all the tracking branches inorigin/Related: