Answers for "git clone ony one branch"

47

clone specific branch

git clone --single-branch --branch <branchname> <remote-repo>
Posted by: Guest on April-02-2020
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