Hi, On Wed, Sep 16, 2009 at 04:18:29PM +0300, Sergiu Ivanov wrote: > On Tue, Sep 15, 2009 at 08:46:06AM +0200, Arne Babenhauserheide wrote:
> > "hg rollback" can also be used to undo pulling from someone, since > > it just reverts the last change to the history. > > Sounds great; I'm can't remember git-reset being able to do that, but > it might be my lack of knowledge. Of course it can: git reset --hard ORIG_HEAD There are other ways also, for example: git reset @{1} The great thing about git is that *everything* can be reverted (with the obvious exception of git-gc...) -- including a revert. I really think this is *the* most important feature of git. No matter how much you screw up, you can *always* go back -- you just need to know how. This means a great increase of power in practice, because knowing that you can always recover, you can go ahead an try all kinds of crazy or otherwise "risky" stuff, which you'd never attempt otherwise. Only once you understand this (and of course also know enough about the available possibilities to make use of it), you can truely appreciate the power of git. Unfortunately, few people bother to go that deep :-( -antrik-