Command

git checkout (branch switching)

Older multi-purpose command for switching or creating branches; it also has file-restoration modes outside this reference. Inspect status before switching.

Formal Syntax & Structure

git syntaxgit
git checkout BRANCH | git checkout -b NEW

Working Example

Example Snippetgit
git checkout -b topic
Git Reference