Answers for "git command to clone from a specific branch"

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
1

clone a specific branch

clone a specific branch... 
$ git clone -b <branchName> <clone with HTTPs link>
Posted by: Guest on June-30-2021

Code answers related to "git command to clone from a specific branch"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language