Switch to a branch
Git, Branch · Apr 13, 2021

Switches to an existing branch.
- Use
git checkout <branch>
to switch to the specified branch. - Note: In newer versions of git, you can also use
git switch <branch>
.
git checkout <branch>
git checkout patch-1 # Switches to the branch named `patch-1`