Github desktop "Cannot revert a merge commit"
I am currently learning Git commands but for the moment I using the desktop version of GitHub. I am running into when I try to revert after branching and merging and was wondering if anyone could provide some insight into it.
My problem is that when I try to revert an old commit I get an error message telling me I cannot revert a merge commit. The process I have been using is to branch from master, add feature, merge feature to master. Is there any way around this as I need to revert the changes that I made in one of the branches that I merged. At the moment my timeline would look something like this.
*--*--*--*--A------------B------------C [master]
/ /
*--*--*--* *--*--*--*
[feature1] [feature2]
So At the moment I am at point C in the master and would like to revert the changes I made in feature2 so I would essentially be at B again but as I say GitHub Desktop does not allow me to do so. I am getting pretty comfortable with the Git commands using PowerShell so if it would be possible to solve any of my issues with Git commands I would be happy to try it.
链接地址: http://www.djcxy.com/p/49834.html上一篇: 从git中拉取故事分支的最佳实践
下一篇: Github桌面“无法恢复合并提交”