简体   繁体   English

EGit可以还原合并提交吗?

[英]Can EGit revert a merge commit?

When I try to revert a merge commit using EGit 4.1.1 I get the following error: 当我尝试使用EGit 4.1.1恢复合并提交时,出现以下错误:

在此处输入图片说明

Using Git on the bash, I can do the following git revert -m 1 f28ce5817da19f61110a3b794dcde50ea72341e9 and it works fine. 在bash上使用Git,我可以执行以下git revert -m 1 f28ce5817da19f61110a3b794dcde50ea72341e9 ,它可以正常工作。

As you can see from the error message, apparently EGit cannot revert merge commits (ie commits with more than one parent). 从错误消息中可以看到,显然EGit无法还原合并提交(即具有多个父级的提交)。

The equivalent for -m 1 , a dialog that asks you to select the mainline commit, for example, is missing. -m 1的等效项,例如,缺少一个要求您选择主线提交的对话框。

You may want to open an enhancement request for EGit to support reverting commits with more than one parent. 您可能要为EGit打开一个增强请求,以支持对具有多个父对象的提交进行还原。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM