Skip to content

Glossary: Coding with AI Assistants

git switch

Also written: git switch -c, git branch -D

`git switch -c NAME` creates a branch and moves onto it, `git switch -` returns to the previous branch, and `git branch -D NAME` deletes a branch.

Where the book teaches it

Related terms

Branch