Home > Mobile >  Done a git clone of a users repository but cannot see the branch [duplicate]
Done a git clone of a users repository but cannot see the branch [duplicate]

Time:10-08

I am only trying to access a single bracnh not all branches as in the the so called duplicate questions

Clone another users repostitory

git clone https://[email protected]/mvmn/jaudiotagger.git

but when I try to list branches it shows nothing

git branch

It shows nothing, even though they do have branches.

e.g https://bitbucket.org/mvmn/jaudiotagger/src/generics_refactoring/

Im trying to access the generics_refactoring branch

CodePudding user response:

git branch only lists local branches.

To see remote branches, try git branch -r (or git branch -a for local remote)

You might also need to git fetch beforehand to have fresh references.

Once you have checked out a branch locally, it will create a local version, which will indeed appear in the git branch output.

  • Related