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 NAME

Working Example

Example Snippetgit
git branch -d documentation
Git Reference