开发者

Remove conflicted branch in git

I am using git for my projects, and some days ago I commited the same changes on on two clients. then I pushed both commits to the central repo. now I have a branch with conflict:

git branch
* master
  master (In Konflikt stehende Kopie von Matthias 2011-05-24)

For non German speaking 开发者_高级运维users: master (conflicted copy by Matthias 2011-05-24)

How can I delete this conflicted master branch? Both contain exactly the same data, except for the commit message.


Have you tried this

git branch -D "master (In Konflikt stehende Kopie von Matthias 2011-05-24)"

The -D flag forces the deletion even when the current branch is not a descendant of the conflicted branch.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜