branche spécifique au clone
git clone --single-branch --branch <branchname> <remote-repo>
cloner à partir d'une branche spécifique
git clone -b <branchName> <remote_repo_url>
branche spécifique au clone
In general:
git clone -b <branch> <remote_repo>
Example:
git clone -b develop [email protected]:user/myproject.git
cloner git à partir d'une branche spécifique
git clone -b branchName repoUrl
cloner git à partir d'une commande de branche spécifique
git clone -b <branch> <remote_repo>
clone de git branche unique
# clone only the remote primary HEAD (default: origin/master)
git clone <url> --single-branch
# as in:
git clone <url> --branch <branch> --single-branch [<folder>]