Is git revert broken?
Posted
by
sabgenton
on Stack Overflow
See other posts from Stack Overflow
or by sabgenton
Published on 2012-04-15T05:25:30Z
Indexed on
2012/04/15
5:29 UTC
Read the original article
Hit count: 137
The following pastebin is a repo with one file with one, two, three, four, five typed on each line.
Each line was commited separately into git:
http://pastebin.ca/raw/2136179
I then tried to delete the line two with the command git revert <commmit which creates two>
And get:
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'
There should be no conflict for something this simple? Or am I doing it wrong/got the wrong command?
The merge details don't seem to make sense either:
one
<<<<<<< HEAD
two
three
four
five
=======
>>>>>>> parent of b4e0a66... second
Isn't that saying delete everything but one? I was expecting only two to be affected...
git 1.7.10
© Stack Overflow or respective owner