4 ms·
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
by howinteresting 5y 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.
- Miiko 5y agoGit 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.
- aayjaychan 5y agothat would be `hg prune` in modern Mercurial.
- howinteresting 5y agogit reset does like 25 different things.