# git merge

3 messages from 2012-03-20 to 2012-03-20. Participants: Fabien Dubail, Neal Kreitzinger.
Thread: https://gitlist.dev/t/30007

## Fabien Dubail, 2012-03-20 09:47

Subject: git merge
Message-ID: <4F685237.5060402@labage.be>
URL: https://gitlist.dev/e/4F685237.5060402%40labage.be

```
Hi,

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?

Thanks

Fabien

```

## Neal Kreitzinger, 2012-03-20 23:49

Subject: Re: git merge
Message-ID: <4F69179C.3030808@gmail.com>
URL: https://gitlist.dev/e/4F69179C.3030808%40gmail.com
In-Reply-To: <4F685237.5060402@labage.be>

```
On 3/20/2012 4:47 AM, Fabien Dubail wrote:
>
> 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

```

## Neal Kreitzinger, 2012-03-20 23:50

Subject: Re: git merge
Message-ID: <4F6917A9.3000400@gmail.com>
URL: https://gitlist.dev/e/4F6917A9.3000400%40gmail.com
In-Reply-To: <4F685237.5060402@labage.be>

```
On 3/20/2012 4:47 AM, Fabien Dubail wrote:
>
> 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

```
