Re: [PATCH] git-revert is one of the most misunderstood command in git, help users out.
- From
Mike Hommey <mh@glandium.org>
- Date
- Nov 7, 2007, 08:16 UTC
- Message-ID
- <20071107081608.GA19066@glandium.org>
- In-Reply-To
- <Pine.LNX.4.64.0711062225090.4362@racer.site>
On Tue, Nov 06, 2007 at 10:25:48PM +0000, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 13 quoted lines
> Hi,
>
> On Tue, 6 Nov 2007, Robin Rosenberg wrote:
>
> > tisdag 06 november 2007 skrev Mike Hommey:
> > > Maybe the documentation could emphasise on how to undo things when the
> > > user makes mistakes.
> > > Sometimes, saving your repo can be as simple as git reset --hard HEAD@{1}.
> > > This is not, unfortunately, a works-for-all-cases command.
> >
> > Yea, git-undo(7).
>
> In related news, I know a few users who need an un-rm-rf. Anyone?The fact is you can do harm to your repo with things you wouldn't expect to break things, except maybe you gave bad arguments or so. It's quite easy to fuck up with git-rebase, or to merge the wrong commits, etc.
Mike