Delete Git branch locally can be done providing
-d parameter to
git branch command. In some cases, git can complain than a branch is not fully merged, and it will refuse to delete it, in that case, you can use
-D parameter (capital D), it will force Git to remove it.
# remove git branch locally git …