Git 2 · Branches

Create and switch to a branch

Create a new branch from the current commit and switch to it.

git switch -c feature/login

Official Git 2 documentation

More branches commands

All branches commands · Git 2 cheatsheet

Was this page helpful?