git branch
CautionBranches
git branch <name>
List, create or delete branches.
Examples
git branch -aList incl. remotes
Syntax
git branch [name] [-d name]
Before you run it
-D force-deletes even unmerged branches.
Related commands
- git switch / checkoutSwitch branch
- git mergeMerge
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store