When comparing, GitHub highlight everything as if I changed completely the code. Is this normal? http://puu.sh/sRRdy/4ad7599721.png
Asked
Active
Viewed 44 times
0
-
3Instead of a picture, can you provide the Github link to the diff? – Schwern Dec 16 '16 at 21:26
-
3Probably CRLF/LF changes. – PeeHaa Dec 16 '16 at 21:27
-
@Schwern, sorry, it's in a private repo – Mena12 Dec 16 '16 at 21:40
-
@PeeHaa do you know how can I fix this? I'm using PhpStorm – Mena12 Dec 16 '16 at 21:41
-
1Possible duplicate of [How to change line-ending settings](http://stackoverflow.com/questions/10418975/how-to-change-line-ending-settings) or https://www.jetbrains.com/help/phpstorm/2016.1/configuring-line-separators.html – PeeHaa Dec 16 '16 at 21:42
1 Answers
0
You can first confirm this is an eol issue locally, with your git showing eol diffrences.
git config color.diff.whitespace "red reverse"
git diff -R
If so:
make sure git does not change anything for you
git config --global core.autocrlf false,
Configure your IDE to use the proper eol style
- clone again your repo and go on from there.