Skip to content
Browse files
Add .gitattributes to avoid line endings issues
Since commit 56e687f, Linux line endings (LF) are enforced. But on
Windows, a common practice is to set core.autocrlf to 'auto', wich mean
that the local copy of the file has Windows line endings, whereas the
remote copy has Linux line endings (cf.

With core.autoclrf=auto, Checkstyle will throw an error because local
files will have Windows line endings.

This setting will set Linux line endings for all text files, except
.cmd files.
  • Loading branch information
olivierlemasle authored and nacx committed Oct 7, 2015
1 parent 9cd78bf commit 0aed121fa7f8117b467dfd5f4805361965a39446
Showing 1 changed file with 2 additions and 0 deletions.
@@ -0,0 +1,2 @@
* text eol=lf
*.cmd binary

0 comments on commit 0aed121

Please sign in to comment.