Answers for "how to clone repo with branch"

58

clone specific branch

git clone --single-branch --branch <branchname> <remote-repo>
Posted by: Guest on April-02-2020
-2

how to clone repo with all branches

$ git branch -a
* master
  remotes/origin/HEAD
  remotes/origin/master
  remotes/origin/v1.0-stable
  remotes/origin/experimental
Posted by: Guest on May-29-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language