Answers for "clone new branch git command"

47

clone specific branch

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

clone branch git

git clone <repository_url>
git branch -a
git checkout <branch_name>
Posted by: Guest on January-05-2021
0

git clone single branch

# clone only the remote primary HEAD (default: origin/master)
git clone <url> --single-branch

# as in:
git clone <url> --branch <branch> --single-branch [<folder>]
Posted by: Guest on December-08-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language