git branch -d feature-xyz

Category: Git - Core

git branch -d feature-xyz

Delete a fully merged local branch

Deletes a local branch that has already been merged. Safe — it won't delete unmerged work.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.