How do I git reset --hard HEAD on Mercurial?

Posted by obvio171 on Stack Overflow See other posts from Stack Overflow or by obvio171
Published on 2010-04-20T04:03:05Z Indexed on 2010/04/20 4:13 UTC
Read the original article Hit count: 330

Filed under:
|
|
|

I'm a Git user trying to use Mercurial.

Here's what happened: I did a hg backout on a changeset I wanted to revert. That created a new head, so hg instructed me to merge (back to "default", I assume). After the merge, it told me I still had to commit. Then I noticed something I did wrong when resolving a conflict in the merge, and decided I wanted to have everything as before the hg backout, that is, I want this uncommited merge to go away. On Git this uncommited stuff would be in the index and I'd just do a git reset --hard HEAD to wipe it out but, from what I've read, the index doesn't exist on Mercurial. So how do I back out from this?

© Stack Overflow or respective owner

Related posts about mercurial

Related posts about git