tags:

views:

24

answers:

2

Hello,

I am new to GIT (from SVN). When I make a merge, all the file is set as conflicted (not only the lines where there is really a conflict). This should come from a "end of line" problem between me (Windows) and my partner (Mac) but how to solve that?

Thanks in advance for your help!

Farf

+1  A: 

http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html

Set the proper attributes to tell Git to normalize line endings.

Amber
Amber is pointing you to the right place. Have a look at http://stackoverflow.com/questions/170961/whats-the-best-crlf-handling-strategy-with-git for a discussion here on SO concerning CRLF.
labratmatt
Thanks, I'll look at this.
Farf
A: 

It seems that you must enable the core.autocrlf config option, see e.g. this document and the manual pages for git config and gitattributes. If conflicts occurred then the merge commit shouldn't have been made, and you should be able to revert the partial merge with git reset.

Philipp