今天删除本地分支 Git branch -d XX 提示:  the branch  XXX is not fully merged

原因:XXX分支有没有合并到当前分支的内容

 

解决方法:使用大写的D 强制删除  git branch -D XXX   

 

另外不能删除当钱checkout 的分支

 

其它:删除远程分支 需要切换到其它分支之后删除当前分支

否则会:error:cannot delete the branch 'XXX' which you are currently on

 

 

删除远程分支:

git push origin  :XXXX

相关文章:

  • 2021-12-19
  • 2022-12-23
  • 2021-11-22
  • 2021-08-12
  • 2021-10-03
  • 2021-08-11
猜你喜欢
  • 2021-08-03
  • 2021-10-28
  • 2022-12-23
  • 2022-02-16
  • 2022-01-04
相关资源
相似解决方案