Answers for "how to clone a project branch and commit"

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
1

clone project from specific branch

git clone -b <branchname> <remote-repo-url>
Posted by: Guest on January-14-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language