From: Steven Noonan <steven@uplinklabs.net>
To: Sergio Belkin <sebelk@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Set the repository as it was on an earlier commit
Date: Fri, 25 Dec 2009 15:24:59 -0800 [thread overview]
Message-ID: <f488382f0912251524i12bf53a4xf381606705abff4b@mail.gmail.com> (raw)
In-Reply-To: <8c6f7f450912251509i67da4665t78be0bb79f2c40d6@mail.gmail.com>
On Fri, Dec 25, 2009 at 3:09 PM, Sergio Belkin <sebelk@gmail.com> wrote:
> Hi,
>
> Firstly merry Christmas everyone.
>
> I am somewhat new to git, and I've found great, but still I have some
> doubts about it, let's say I have the following repo with:
>
> A---B---C---D
>
> Being A the first commit, B the second one an D the last one.
>
> How I do to go back to let's say... B commit status, I mean somewhat as follows:
>
> A---B---C---D---B'
>
> B' would be the same as B. I am not asking to do something so:
>
> A---B---C---D to A---B losing C and D commits,
>
> I'd like to keep on history C and D commits, can git to do that?
>
> Thanks in advance!
>
git revert D
git revert C
Maybe? It would create two revert commits, but it would get you back
to the state of B.
- Steven
next prev parent reply other threads:[~2009-12-25 23:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-25 23:09 Set the repository as it was on an earlier commit Sergio Belkin
2009-12-25 23:24 ` Steven Noonan [this message]
2009-12-25 23:36 ` Santi Béjar
2009-12-26 14:28 ` Matthieu Moy
2009-12-28 4:19 ` Sergio Belkin
2009-12-28 5:18 ` Fwd: " Sergio Belkin
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=f488382f0912251524i12bf53a4xf381606705abff4b@mail.gmail.com \
--to=steven@uplinklabs.net \
--cc=git@vger.kernel.org \
--cc=sebelk@gmail.com \
/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).