Skip to content

Glossary: Command Line and Git

git switch

Also written: git checkout

Moves you to another branch and changes your files to match it. `git switch -c name` creates the branch first, and `git checkout` is the older equivalent.

Where the book teaches it

Related terms

branchgit branch