开发者

Remove conflicted branch in git

开发者 https://www.devze.com 2023-03-08 07:25 出处:网络
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:

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

精彩评论

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