Git 2 · Branches

Switch branch

Move to an existing branch.

git switch main

Official Git 2 documentation

More branches commands

All branches commands · Git 2 cheatsheet

Was this page helpful?