From: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
To: Junio C Hamano <gitster@pobox.com>
Cc: Avery Pennarun <apenwarr@gmail.com>,
Mihamina Rakotomandimby <mihamina@gulfsat.mg>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: reverting vs resetting
Date: Fri, 05 Feb 2010 09:41:21 +0100 [thread overview]
Message-ID: <vpqwryskrbi.fsf@bauges.imag.fr> (raw)
In-Reply-To: <7v1vh0jh0p.fsf@alter.siamese.dyndns.org> (Junio C. Hamano's message of "Thu\, 04 Feb 2010 23\:09\:10 -0800")
Junio C Hamano <gitster@pobox.com> writes:
> git branch andy_failed_experiment
> git reset --hard HEAD~50
> ;# and perhaps revert Bob's change here as well
So would I, and to complement Junio's answer: keeping a failure
followed by a repair means this experiment will appear more or less
forever in the output of "git log", "git blame", will break "git
bisect" on that part of history, and so on. Putting it on a separate
branch avoids this, and keeps it in a safe place to show newcommers:
"see, here's what you should not do" ;-).
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
next prev parent reply other threads:[~2010-02-05 10:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-05 6:12 reverting vs resetting Mihamina Rakotomandimby
2010-02-05 6:48 ` Avery Pennarun
2010-02-05 7:09 ` Junio C Hamano
2010-02-05 8:41 ` Matthieu Moy [this message]
2010-02-05 11:21 ` Mihamina Rakotomandimby
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vpqwryskrbi.fsf@bauges.imag.fr \
--to=matthieu.moy@grenoble-inp.fr \
--cc=apenwarr@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=mihamina@gulfsat.mg \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).