以下pastebin是一个包含一行,二行,三行,四行和五行的文件的回购。使用“git revert”来退出添加一行的更改?
每条线分别COMMITED到混帐:
http://pastebin.ca/raw/2136179
我再尝试删除线两条用命令git revert <commmit which creates two>
并获得:
error: could not revert b4e0a66... second
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
应该有这个简单的东西没有冲突吗?还是我做错了/得到了错误的命令?
合并细节似乎并没有什么意义之一:
one
<<<<<<< HEAD
two
three
four
five
=======
>>>>>>> parent of b4e0a66... second
那不是说删除一切,但一个?我期待只有两个受影响......
混帐1.7.10
好吧,你是说我应该只使用这个命令,我可能会做git reset --hard HEAD ^? – sabgenton 2012-04-15 06:32:24
那么它会仍然是有用的,如果你推了,但没有我所希望的那么有用..(我不太可能在一次推挤上就塞满了) – sabgenton 2012-04-15 06:33:10
我试过手动方式做'hg backout'在这里描述http://mercurial.selenic.com/wiki/Backout(用退房取代还原),同样的事情发生! –
sabgenton
2012-04-15 10:32:29