1 # See https://git-scm.com/docs/gitattributes 2 # See https://help.github.com/articles/dealing-with-line-endings/ 3 4 # default behavior, if core.autocrlf is unset. 5 * text=auto 6 7 # files to be converted to native line endings on checkout. 8 *.cpp text 9 *.h text 10 11 # files to always have CRLF line endings on checkout. 12 *.bat text eol=crlf 13 14 # files to always have CR line endings on checkout. 15 *.sh text eol=cr 16 17