delete branch in git branch

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325944834&siteId=291194637
Recommended