无法删除不存在的分支? [英] Cannot delete a Branch that doesn't exist?

查看:95
本文介绍了无法删除不存在的分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

查看此屏幕截图...我只是查询了分支,它显示了分支列表中的分支是不同的油...然后,当我尝试 del,rm或checkout分支时,它说分支不匹配...这是屏幕截图:


发生的事情是,一旦合并新的内容,我便从github上删除了该分支。主。然后,反过来,我从github提取了新的master并进行了合并。都是一样的。如何删除git说不存在的分支?我还重新登录:



任何想法...?

Check out this screenshot...I just queried the branches and it shows that branch 'different-oil' is in the list of branches...then when I tried "del, rm, or checkout" the branch, it says the branch did not match...here's the screenshot:

What happened is that I deleted the branch from github once I merged the new master. Then in turn, I pulled the new master from github and merged. All is the same. How can I delete this branch that git is saying doesn't exist? I also relogged in:

Any Ideas...?

推荐答案

这是我的答案...在阅读了有关使用git branch -d删除本地分支的另一篇相关文章之后,此命令的确使我知道在本地计算机上,合并未完成。这并不能解释为什么它告诉我找不到分支,但是一旦合并,就可以使用 git branch -d命令删除该分支,如下所示。感谢那些协助。

Here's my answer...after reading another related post about deleting local branches, using the git branch -d, this command did let me know that on the local machine the merge was incomplete. This doesn't explain why it was telling me that the branch could not be found, but once I merged, then, as you can see below, the branch was deletable with the "git branch -d" command. Thanks to those who assisted.

这篇关于无法删除不存在的分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆