Delete the local branch today git branch -d XX Tip: the branch XXX is not fully merged
Reason: Has the XXX branch merged into the current branch?
Workaround: Force delete with capital D git branch -D XXX
In addition, you cannot delete the branch when the money is checkedout
Others: To delete a remote branch, you need to switch to another branch and delete the current branch
否则会:error:cannot delete the branch 'XXX' which you are currently on
Delete remote branch:
git push origin :XXXX