4

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?

user229044
  • 232,980
  • 40
  • 330
  • 338
Farf
  • 249
  • 3
  • 11

2 Answers2

2

man page for git-attributes

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

mmmmmm
  • 32,227
  • 27
  • 88
  • 117
Amber
  • 507,862
  • 82
  • 626
  • 550
  • 1
    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 Jun 26 '10 at 17:14
2

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
  • 48,066
  • 12
  • 84
  • 109