How to switch branches $ git switch [branch] Command git Description Switch to a specified branch. Newer alternative to checkout. Related How to create and switch to a new branch