Command
git branch -d
Delete a local branch reference after checking integration. Git checks the configured upstream, or HEAD if no upstream exists. Inspect the intended integration target first; do not force past a refusal.
Formal Syntax & Structure
git syntaxgit
git branch -d NAMEWorking Example
Example Snippetgit
git branch -d documentation