git revert <version> 失败 总提示 conflicts 是什么原因呢

2017-12-31 23:11:52 +08:00
 AZZERO

我在用 git revert <version>命令撤销某次操作的时候,譬如(a)--(b)--(c)--(a') (用 revert 回退到 a 提交新的 a')终端提示说有 conflicts,我解决后重新 commit 不成功,重新用 git revert <version>命令说是有文件没有 merge,我该怎么才能 revert 成功?求助……

执行的命令如下:

[root@yun testproject]# git revert dbe71a34db7b7f361e76a6174d472ff37c82868d

Automatic revert failed. After resolving the conflicts,

mark the corrected paths with 'git add <paths>' or 'git rm <paths>'

提示 revert 失败

1803 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/419065

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX