Answers for "clone whole repository with branch into another"

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 "clone whole repository with branch into another"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language