José Carlos
José Carlos

Reputation: 1015

Repair file diffs in git

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?

Upvotes: 0

Views: 140

Answers (1)

zerkms
zerkms

Reputation: 255005

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

Upvotes: 2

Related Questions