Answers for "add branch to single branch clone"

12

clone from a specific branch

git clone -b <branchName> <remote_repo_url>
Posted by: Guest on November-09-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