Git · Branches and merges
git checkout -b
The older create-and-switch command. Prefer git switch -c.
Syntax
git checkout -b <branch>Example
Example
git checkout -b feature/auth
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.