xxxxxxxxxx
# To delete a local branch, use the following command:
git branch -d branch_name
# If the branch has not been merged, you can use the following command to force delete it:
git branch -D branch_name
xxxxxxxxxx
// delete branch locally
git branch -d localBranchName
//delete local branch that is unmerged
git branch -D localBranchName
// delete branch remotely
git push origin --delete remoteBranchName