From: Stephen Bash <bash@genarts.com>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org, Tony Finch <dot@dotat.at>
Subject: Re: A workflow for local patch maintenance
Date: Fri, 11 Oct 2013 11:30:53 -0400 (EDT) [thread overview]
Message-ID: <636938755.2020935.1381505453539.JavaMail.root@genarts.com> (raw)
In-Reply-To: <20131011151614.GA29226@sigill.intra.peff.net>
----- Original Message -----
> From: "Jeff King" <peff@peff.net>
> To: "Stephen Bash" <bash@genarts.com>
> Cc: git@vger.kernel.org, "Tony Finch" <dot@dotat.at>
> Sent: Friday, October 11, 2013 11:16:14 AM
> Subject: Re: A workflow for local patch maintenance
>
> On Fri, Oct 11, 2013 at 09:22:28AM -0400, Stephen Bash wrote:
>
> > > To mitigate problem 1, I will sometimes revert a local topic
> > > before doing the upstream merge, if I know it has been reworked.
> >
> > Peff (slightly off topic) - A coworker of mine actually ran into
> > this problem earlier this week. Is there recommended way to revert
> > a merged topic branch? I assume it's essentially reverted each
> > commit introduced by the branch, but is there a convenient
> > invocation of revert? (easy to remember and hard to screw up)
>
> If you merged the whole topic in at once, then you can use "git revert
> -m 1 $merge_commit" to undo the merge. If it came in individual
> pieces, then you have to revert each one individually (though if it
> was a series of merges, you can in theory revert each merge in reverse
> order).
Thanks for the pointer. That got me to the right place on the revert
manpage, and there I found the link to howto/revert-a-faulty-merge.txt
which was extremely helpful.
Thanks!
Stephen
prev parent reply other threads:[~2013-10-11 15:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-08 18:12 A workflow for local patch maintenance Tony Finch
2013-10-10 1:33 ` Jeff King
2013-10-10 16:53 ` Tony Finch
2013-10-10 17:36 ` Jeff King
2013-10-10 19:18 ` Jonathan Nieder
2013-10-11 13:22 ` Stephen Bash
2013-10-11 15:16 ` Jeff King
2013-10-11 15:30 ` Stephen Bash [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=636938755.2020935.1381505453539.JavaMail.root@genarts.com \
--to=bash@genarts.com \
--cc=dot@dotat.at \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.