views:

16

answers:

1

I have a git repository which contains (among others) *.wse text files and *.sh text files. How can I setup git to always checkout *.wse files with CRLF line endings and *.sh files with LF line endings?

+4  A: 

Use a gitattributes file to specify e.g.

*.wse eol=crlf
*.sh eol=lf
laalto
Thanks, this did it.
Tobias