Files
30-seconds-of-code/snippets/switch-to-branch.md
Angelos Chalaris fb4b6fbc8e Update covers
2023-02-16 22:24:37 +02:00

422 B

title, tags, cover, firstSeen, lastUpdated
title tags cover firstSeen lastUpdated
Switch to a branch branch bridge 2021-04-04T14:09:09+03:00 2021-04-13T21:10:59+03:00

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`