I'm trying to clone an entire repository onto my machine using linux. I used
git clone <url>
I then went into the folder where it was downloaded and typed
git branch
in the terminal. It's only showing me master and not other branches which were in the remote repository. How do I clone all branches?
I know that for each branch in the remote I can separately use
git checkout -b <name of local branch> origin/<name of remote branch>
but is there any way other than that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…