Git Delete Local Branch
You can delete a Git Branch using the
According to the Git documentation,
-d is the shorthand for
--delete, so both options are acceptable.
If you want to delete the branch irrespective of the merged status, use the
Here’s the complete Git documentation about deleting branches
OPTIONS -d, --delete Delete a branch. The branch must be fully merged in its upstream branch, or in HEAD if no upstream was set with --track or --set-upstream-to. -D Shortcut for --delete --force. -f, --force In combination with -d (or --delete), allow deleting the branch irrespective of its merged status.