git branch - Branches other than master are hidden after cloning a Git repo? -


this question has answer here:

when git clone , git branch, master shows up. see other branches remote when git branch -a.

why other branches hidden?

assuming did normal clone , didn't use --depth=1, they're not hidden, haven't made local copy yet. check out 1 of other branches, run:

git checkout <branchname> 

it'll detect remote branch , check out version of code locally.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -