3 ms·
The Mercurial equivalent of "git reset --hard ORIG_HEAD" is "hg update --clean" (or "hg up -C" for short), which is still clearer to understand than the git equ
by gecko 17y ago
The Mercurial equivalent of "git reset --hard ORIG_HEAD" is "hg update --clean" (or "hg up -C" for short), which is still clearer to understand than the git equivalent, in my opinion.
To correct another common misconception, you can absolutely push only certain heads of a repository. The command is "hg push -r <head of relevant branch>". If you have bookmarks installed, that can be as easy as "hg push -r <bookmark name>".