[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mercurial vs. git
From: |
olafBuddenhagen |
Subject: |
Re: Mercurial vs. git |
Date: |
Tue, 22 Sep 2009 00:37:57 +0200 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
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-
- Re: Discussing to death, (continued)
- Mercurial vs. git (Re: hurd-web/hurd/translator/unionmount.mdwn), Sergiu Ivanov, 2009/09/13
- Re: Mercurial vs. git (Re: hurd-web/hurd/translator/unionmount.mdwn), Arne Babenhauserheide, 2009/09/16
- Re: Mercurial vs. git (Re: hurd-web/hurd/translator/unionmount.mdwn), Sergiu Ivanov, 2009/09/16
- Re: Mercurial vs. git (Re: hurd-web/hurd/translator/unionmount.mdwn), Arne Babenhauserheide, 2009/09/16
- Re: Mercurial vs. git, Sergiu Ivanov, 2009/09/16
- Re: Mercurial vs. git, Arne Babenhauserheide, 2009/09/22
- wiki (was: Mercurial vs. git), olafBuddenhagen, 2009/09/23
- Re: Mercurial vs. git,
olafBuddenhagen <=
- Re: Mercurial vs. git, Arne Babenhauserheide, 2009/09/23
- Re: Mercurial vs. git, Sergiu Ivanov, 2009/09/23
- Re: Mercurial vs. git, Arne Babenhauserheide, 2009/09/23
- Re: Mercurial vs. git, Sergiu Ivanov, 2009/09/23
- Re: Mercurial vs. git, Arne Babenhauserheide, 2009/09/23
- Re: Mercurial vs. git, Sergiu Ivanov, 2009/09/23
- Re: Mercurial vs. git, Arne Babenhauserheide, 2009/09/23
- Re: Mercurial vs. git, Sergiu Ivanov, 2009/09/23
- Quotes about the Hurd, Arne Babenhauserheide, 2009/09/23
- Re: Mercurial vs. git, Shakthi Kannan, 2009/09/23