0

I have a file in a git repository. When I use git diff it seems like if I did delete all the content and added again (with one line different) but when I use the Netbeans git/diff tool I see only this line as difference.

In fact, there is only one difference line. What can I do for repair the difference?

José Carlos
  • 1,005
  • 16
  • 29
  • 2
    Try `git diff -w`, or some other whitespace-ignoring option. The help for git diff explains all the options. – Paul Hicks Feb 09 '14 at 21:58

1 Answers1

2

Presumably you have changed the end of line character from unix \n to windows \r\n or vice versa.

The solution: just don't do that

zerkms
  • 249,484
  • 69
  • 436
  • 539