I found this https://help.github.com/articles/dealing-with-line-endings so you can set it directly in git