git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Jeff Whiteside" <jeff.m.whiteside@gmail.com>
To: "Ray Morgan" <raycmorgan@mac.com>
Cc: git@vger.kernel.org
Subject: Re: Removing a merge commit
Date: Wed, 10 Dec 2008 16:24:05 -0800	[thread overview]
Message-ID: <3ab397d0812101624h77c5198bqd38f30dee1830605@mail.gmail.com> (raw)
In-Reply-To: <4A07B3ED-D048-4455-B4C3-5DAB1F8E6965@mac.com>

Isn't this what you want? (taken from
http://www.kernel.org/pub/software/scm/git/docs/git-rebase.html)



A range of commits could also be removed with rebase. If we have the
following situation:

    E---F---G---H---I---J  topicA

then the command

git rebase --onto topicA~5 topicA~3 topicA

would result in the removal of commits F and G:

    E---H'---I'---J'  topicA



On Wed, Dec 10, 2008 at 12:20 PM, Ray Morgan <raycmorgan@mac.com> wrote:
> Hello,
>
> To build a release for our site, we merge branches that developers create.
> We do this with --no-ff in order to make it only one commit to pull if it
> fails QA. Say the qa branch's history has 4 merge commits in a row, is there
> any way to remove the 3rd (just pulling it out.. much like how a rebase
> works)?
>
> Currently we just checkout below that failed branch and re-merge everything
> above it.. but that just seems very clumsy (and manual).
>
> Thanks!
> Ray
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

      reply	other threads:[~2008-12-11  0:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-10 20:20 Removing a merge commit Ray Morgan
2008-12-11  0:24 ` Jeff Whiteside [this message]

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=3ab397d0812101624h77c5198bqd38f30dee1830605@mail.gmail.com \
    --to=jeff.m.whiteside@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=raycmorgan@mac.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).