clone specific branch
git clone --single-branch --branch <branchname> <remote-repo>
clone specific branch
git clone --single-branch --branch <branchname> <remote-repo>
clone specific branch
In general:
git clone -b <branch> <remote_repo>
Example:
git clone -b develop [email protected]:user/myproject.git
clone from a specific branch
git clone -b <branchName> <remote_repo_url>
git clone from specific branch
git clone -b branchName repoUrl
clone commit of a branch
> git clone -b <branch-name> <remote-repo>
> cd <repo-name>
> git checkout -b <new-branch-name> <commit-id>
> code .
git clone specific branch
git clone --single-branch --branch <branchname> <remote-repo>
# eg
git clone -b opencv-2.4 --single-branch https://github.com/Itseez/opencv.git
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us