Git - how to keep CRLF endings for specific files only? Git - how to keep CRLF endings for specific files only? git git

Git - how to keep CRLF endings for specific files only?


You can use .gitattributes, an entry such as:

*.cmd eol=crlf

This will ensure that the file is checked out with windows line endings even in clones that would normally use unix line endings,