Answers for "how to get clone ofa particular branch in git"

47

clone specific branch

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

clone specific branch

In general:

git clone -b <branch> <remote_repo>

Example:

git clone -b develop [email protected]:user/myproject.git
Posted by: Guest on August-03-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language