Answers for "how to clone github branch"

47

git clone branch

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

clone branch git

git clone <repository_url>
git branch -a
git checkout <branch_name>
Posted by: Guest on January-05-2021
0

how to git clone a specific branch

# Using gh CLI

gh repo clone <username>/<reponame> -- -b <branchname>
Posted by: Guest on April-17-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language