List, create or delete branches
medium risk
Manages local branches. See the flags and examples below, and run `man git` for the full reference.
| Flag | Meaning |
|---|---|
-a | All branches |
-vv | Verbose with upstream |
-d | Delete (merged only) |
-D | Force delete⚠ Loses unmerged commits (recoverable via reflog). |
-m | Rename |
git branch -vvBranches and tracking · explain & risk-check →git branch -d oldDelete a merged branch · explain & risk-check →Reference text is hand-written and may be incomplete — check man git for your version. Test destructive commands on a non-production system first.