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

Re: git merge - "both added" conflict resolution

From
ESEugene Sajine <euguess@gmail.com>
Date
Aug 5, 2010, 14:41 UTC
Message-ID
<AANLkTimJmHwzDQL00=Mbo2ENR1beRB=P0WKU4S7fRctQ@mail.gmail.com>
In-Reply-To
<20100804233652.GB3595@burratino>
On Wed, Aug 4, 2010 at 7:36 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 10 quoted lines
> Eugene Sajine wrote:
>
>> So, I'm removing all conflict markers and removing the incoming line
>> with the property value=projectOne leaving it as projectTwo.
>> This effectively means that there is no changes in build.xml for git.
>> And I'm stuck because i cannot add file, that is not changed
>
> Sorry I wasn’t clear before.  Could you give output from attempting
> to add the file?  It is supposed to work.
>

There is no output after I add build.xml with resolved conflicts. When i do git status build.xml doesn't show up there.

I tried another way: After i have a conflict i add the build.xml withtout resolving conflicts. Then I unstage it - it's status changes from "both added: " to "modified" Then i can resolve the conflict, which means build.xml returns to it's last committed state. But then i'm back to square one as build.xml is not showing in changes, so i cannot add it and i still cannot commit because of partial commit.

Thanks, Eugene

Previous: Jonathan NiederNext: Eugene Sajine
Message 5 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.