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
Post a Comment