Git · Setup and remotes
git clone --branch
Clones a specific branch and checks it out.
Syntax
git clone --branch <name> <url>Example
Example
git clone --branch develop https://github.com/example/project.git
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.