Re:The Real Difference Between Git and Mercurial
by mrb on Friday January 20, 2012 @10:43AM
(#3489807)
Absolutely, it would preserve the original B.
You can easily switch your working directory to one of them: hg update B or B'
You can easily throw away the one you don't want to keep: hg strip B or B'
The two hg commands you mentioned are summed up as one with git: git reset --soft HEAD^. Then if you commit B' but ever want to go back to B, you could do git reset --hard HEAD@{2}