Git 2 · Branches Switch branch Move to an existing branch. git switch main Official Git 2 documentation More branches commands List branchesCreate and switch to a branchRename the current branchDelete a merged branchDelete an unmerged branchDelete a remote branch All branches commands · Git 2 cheatsheet ← Create and switch to a branchRename the current branch →