git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Ignoring commits when merging
@ 2010-08-17 20:21 Mike Strauch
  2010-08-18  1:59 ` Jonathan Nieder
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Strauch @ 2010-08-17 20:21 UTC (permalink / raw)
  To: git

Hi,

I'm fairly new to git and I'm trying to figure out the best way to
ignore certain commits when merging one branch into another.  I've
found a solution that suggests that I merge everything before the
commit I want to skip, then merge the commit I want to skip using the
"ours" merging strategy, then merge everything after the skipped
commit.  This sounds like an adequate solution to the problem, but I'm
wondering if there's a better way to do it.

I was thinking that I could just cherry-pick the few commits that I
want from Branch 2 in order to exclude the commit I don't want, but
this will result in there being no link between the branches for those
commits.  Are there any other ways this can be done?

--
Mike Strauch
www.hannonhill.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-18 23:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-17 20:21 Ignoring commits when merging Mike Strauch
2010-08-18  1:59 ` Jonathan Nieder
2010-08-18 18:08   ` Mike Strauch
2010-08-18 23:38     ` Jonathan Nieder

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).