git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Cherry picking instead of merges.

From
David Brown <git@davidb.org>
Date
Jul 3, 2008, 18:26 UTC
Message-ID
<20080703182650.GA11166@old.davidb.org>

We have a branch coming from "company B" who is also doing development on the same tree as us. We would like to do regular merges with them, but unfortunately, there are quite a few changes in between.

First we tried a git-merge and resolved the conflicts. The problem here is that the resultant code didn't work. git-bisect wasn't very useful because the intermediate versions don't have resolved conflicts.

Yesterday, one developer cherry picked company B's changes into a branch. It appears he resolved the conflicts for each commit, which should make bisecting easier.

The problem is that we now have very divergent history.

Any advice on how to make use of how he resolved conflicts in order to merge company B's changes in using git-merge. I could always use the "ours" strategy to just kind of force the merge, so at least future merges would work, but it'd kind of be nice to have the proper history.

There are about 110 commits in question.

Thanks, David Brown

Next: Alex Riesen
Message 1 of 13 in “Cherry picking instead of merges.”
  1. David BrownJul 3, 2008
  2. Alex RiesenJul 3, 2008
  3. Avery PennarunJul 3, 2008
  4. David BrownJul 3, 2008
  5. Samuel TardieuJul 3, 2008
  6. Linus TorvaldsJul 3, 2008
  7. David BrownJul 3, 2008
  8. Björn SteinbrinkJul 4, 2008
  9. David BrownJul 4, 2008
  10. Linus TorvaldsJul 4, 2008
  11. Johannes SixtJul 4, 2008
  12. Linus TorvaldsJul 4, 2008
  13. Linus TorvaldsJul 4, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.