Answers for "git clone specific branch in git bash"

58

clone specific branch

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

clone commit of a branch

> git clone -b <branch-name> <remote-repo>
> cd <repo-name>
> git checkout -b <new-branch-name> <commit-id>
> code .
Posted by: Guest on October-06-2021
0

clone branch in git

git clone -b <branchname> --single-branch <remote-repo-url>
Posted by: Guest on February-06-2022

Code answers related to "git clone specific branch in git bash"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language