...
Tell Git to handle line endings for you so folks on different platforms can live in harmony.
Windows
"Do this on the Git Bash MINGW msysGit command line:
No Format |
---|
git config --global core.autocrlf |
...
true |
Linux and Mac
Do this:
No Format |
---|
git config --global core.autocrlf input
|
More info
- http://help.github.com/dealing-with-lineendings/
- http://article.gmane.org/gmane.comp.version-control.git/146485
...