I also work on windows, because our servers are running Linux, and all the code must be based on Linux. I preferred to change all my files to LF instead of CRLF.
from git command line:
git config --global core.autocrlf false
I work with the idea of ββintellij, so this is pretty easy:
1) File β Settings β Editor β code style: (for any new file to be created)
but. Scheme: default
b. Line Separator: unix and os x (\ n)
2) mark the project root -> file -> line separator -> LF unix and os x (\ n) (for existing files)
Note. You can also use applications such as dos2unix.exe or some other scripts.
than I used my command line: (you can also do this from an idea)
git commit -m "bla bla" git add . git push origin master
since then I have not received these warnings
dsaydon
source share