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

Re: git merge

From
NKNeal Kreitzinger <nkreitzinger@gmail.com>
Date
Mar 20, 2012, 23:50 UTC
Message-ID
<4F6917A9.3000400@gmail.com>
In-Reply-To
<4F685237.5060402@labage.be>
On 3/20/2012 4:47 AM, Fabien Dubail wrote:
Show 9 quoted lines
>
> I've conflicts when I merge branches. I can resolve some conflicts but
> not all. The remaining conflicts will be solved by someone else?
> To do that I would like to merge only some files and resolve 'my'
> conflicts. (something like: 'git checkout branch files' but with merge)
> Than remaining files will be merged by someone else and remaining
> conflicts will be resolved .
> Is-it possible to do that with git and how? Or is there an other way?
>
One way you can do it is to create a branch containing your resolutions. 
  Then the other person pulls your branch.  They would redo the merge on 
their own branch and checkout your resolutions to apply your work, and 
resolve the remainder himself.  This could go on for mutltiple people. 
You can edit the merge commit message to document who resolved which 
conflicts.
Maybe someone has a better way.  We did a "distributed merge" this way. 
  I pulled everyone else's branches containing their resolutions and 
then redid the merge and checkout out their resolutions from their 
branches and resolved my portion assigned to me personally.  Actually, I 
think I did mine in a separate branch and then when all were done I 
redid the merge and checked out out everyone's portions from their 
respective branches (including mine) to accomplish the distributed merge 
(merge conflict resolution).  (In our case, we were actually doing 
git-rebase "merge", but I think it would work for git-merge also.)
Maybe someone else has a better way.

v/r, neal

Previous: Neal Kreitzinger
Message 3 of 3 in “git merge”
  1. Fabien DubailMar 20, 2012
  2. Neal KreitzingerMar 20, 2012
  3. Neal KreitzingerMar 20, 2012

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.