git branch feature-xyz

Category: Git - Core

git branch feature-xyz

Create a new local branch

Creates a new local branch. You stay on your current branch; use checkout or switch to move to it.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.