WeCodeAcademy
❮ git checkoutgit switch ❯

git checkout -b

Creates a branch and switches to it.

Group: Branches

Syntax

git checkout -b name

Example

Examplebash
Open in editor »
/ $

← All of Git Command Reference