Skip to content

Home

Switch to a branch

Switches to an existing branch.

💬 Note

In newer versions of git, you can also use git switch <branch>.

git checkout <branch>

# Examples
git checkout patch-1 # Switches to the branch named `patch-1`

More like this

Start typing a keyphrase to see matching snippets.