1

I clones a branch with git clone --branch=<MyRemoteBranch> --depth 50 https://<MyUserName>@bitbucket.org/<MyRepo>.git

When I use branch -r the only output I get is:

 origin/<MyRemoteBranch>

Is there a way I can get it to start showing the rest of my remote branches so I can fetch other branches? I want to fetch origin/HEAD

englemon
  • 41
  • 2

1 Answers1

0

You can use git ls-remote. This lists all remote references and the corresponding commit IDs, making it easy to checkout to a specific commit if necessary. HEAD is also shown.

By default, the list includes tags, but this can be disabled.

GoodDeeds
  • 7,956
  • 5
  • 34
  • 61