I want to delete a local branch in Git but this failed:
git branch -d
Your command to delete a branch is correct:
But you may have an error message indicating you need to use the -D option to force the deletion of the branch:
git branch -D