Git development
 help / color / mirror / Atom feed
* Parallel refactoring and git merge nightmare
@ 2012-04-11 16:13 Pap Lôrinc
  2012-04-11 16:49 ` Michael Witten
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Pap Lôrinc @ 2012-04-11 16:13 UTC (permalink / raw)
  To: git@vger.kernel.org

Hello! :)

We are working in parallel on the refactoring of a 
small project. The team uses SVN and I decided to give GIT a chance to 
demonstrate it's merging capabilities I've read so much good about :).

However
 - I must be doing something VERY wrong - every time I try to merge from
 the remote svn (git svn fetch and git merge remotebranch) into my 
branch, I get hundreds of conflicts, mostly because of moved folders.

I
 tried it from the console (latest git), from Idea (11.1.1), from git 
extensions, from gitk, from tortoisegit and they all offer me a 
one-by-one resolution of the conflicts, that should have been resolved 
automatically (in Idea and tortoisegit I can select "theirs" to all the 
conflicts, but they still give errors at the end).

I think the 
problem arises because git doesn't track
 moves, therefore I constantly get conflicts of type "local modified, 
remote deleted" (or even both deleted) when in fact it was only modified
 and moved, it could have been merged without conflicts (-> apply my 
changes and move the file to the new location).

Even if I move 
the files manually (eg. from totalcommander) to their final locations (I
 have to copy each modified remote file to the new location ... still 
faster than going through the hundreds of conflicts in git mergetool 
manually, one-by-one), and added the files to the index, I have to hunt 
down the duplicated files, and the ones containing the 
"<<<<<" conflict markers (which often contain the two 
whole files ... not just their differences, even though they are clearly
 very similar), delete the merge file leftovers (theirs, base, local 
etc), copy the files over manually, that could not be merged etc. This 
is madness, I am merging manually!!!

I don't want conflict
 markers in my files, it's dangerous. Don't spam my files with garbage 
(and commit them later, because it was left unnoticed in the whole 
manual merge), use temporary files or whatever.

It would also be 
nice if conflicts could be ignored, if the match a certain regexp (eg. 
moving the same .java file in parallel might change the package or 
import statements, which will result in conflicts ... I don't care, use 
whichever, Idea will correct it anyway, I don't want to go through 
hundreds of files because of this). Some hooks could be activated on 
merge conflicts also.

What am I doing wrong, this manual or 
one-by-one merge is absurd :(? I want git to work because of all the bad
 experience I've had with TFS and SVN, but I just can't comprehend this.

Thank you for your patience,
Pap Lőrinc

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-04-12 16:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-11 16:13 Parallel refactoring and git merge nightmare Pap Lôrinc
2012-04-11 16:49 ` Michael Witten
2012-04-12  3:27 ` David Aguilar
2012-04-12  5:23   ` Pap Lôrinc
2012-04-12  5:41     ` Andrew Ardill
2012-04-12  5:49     ` David Barr
2012-04-12 13:52       ` Pap Lôrinc
2012-04-12 16:03         ` Eugene Sajine
2012-04-12  5:41 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox