git switch -c feature-xyz

Category: Git - Core

git switch -c feature-xyz

Create and switch to a new branch (modern syntax)

Creates and switches to a new branch using the modern syntax. -c means 'create'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.