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

git clone --depth git config alias git config core.autocrlf git config pull.rebase git init --bare git remote add git remote remove git remote set-url

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.

Open the course