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

git merge - "both added" conflict resolution

From
ESEugene Sajine <euguess@gmail.com>
Date
Aug 4, 2010, 20:18 UTC
Message-ID
<AANLkTi=Hp6DsE75XbgehS2bucp-M9NXmGgYbvw0kp6j8@mail.gmail.com>
hi,

I'm trying to merge two projects into one. Both are having different and simple set of files inside, but both have build.xml file. Let's say i have source repo with master branch and dest repo.

When i'm trying to merge source into dest it all goes well with an exception of the build.xml file - it has conflict. The conflict is one liner and is easy to resolve, eventually i want it to be as it was before the merge. First of all, after the merge git status gives me message "both added; build.xml" not both modified, which is understandable, but i have no clue yet how to work with it;)

Secondly, when i resolve the conflict the build.xml returns to its last committed state of dest repo, so git cannot determine any changes. Therefore, i cannot execute git add for this file and i cannot commit my merge results, because git sees it as a partial commit.

Any ideas?

Thanks, Eugene

Next: Jonathan Nieder
Message 1 of 6 in “git merge - "both added" conflict resolution”
  1. Eugene SajineAug 4, 2010
  2. Jonathan NiederAug 4, 2010
  3. Eugene SajineAug 4, 2010
  4. Jonathan NiederAug 4, 2010
  5. Eugene SajineAug 5, 2010
  6. Eugene SajineAug 6, 2010

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.