Hacker News new | ask | show | jobs
by howinteresting 1516 days ago
In Mercurial all history is mutable too, there's just a UI failsafe that prevents you from mutating public history unless you manually override it. Git is just plain bad in this regard.

hg backout is like git revert. Creating a new commit is correct if you want to e.g. propagate the change through continuous deployment.

And hg commit --amend has existed for a long time.

1 comments

Git has "reset" in addition to "revert" (the former mutates history but the latter does not). What Mercurial has for removing the wrong commit?

For amend option - well, we switched to Git at time of Mercurial 2.1 (I said it was long time ago), did not notice they added this feature, sorry.

git reset does like 25 different things.
that would be `hg prune` in modern Mercurial.