Answers for "git clone remote branch locally"

58

git clone branch

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

duplicate clone remote branch locally git

git checkout -b <new_local_branch_name> <remote>/<remote_branch_name>
// example
git checkout -b my_branch origin/my_branch
Posted by: Guest on November-18-2020

Code answers related to "git clone remote branch locally"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language