Add .gitattributes for line endings in .bat, .cmd and .sh scripts (#103)
This commit is contained in:
parent
04f087efe4
commit
cfdc25335c
|
@ -0,0 +1,10 @@
|
||||||
|
# Set default behavior to automatically normalize line endings.
|
||||||
|
* text=auto
|
||||||
|
|
||||||
|
# Force bash scripts to always use lf line endings so that if a repo is accessed
|
||||||
|
# in Unix via a file share from Windows, the scripts will work.
|
||||||
|
*.sh text eol=lf
|
||||||
|
|
||||||
|
# Likewise, force cmd and batch scripts to always use crlf
|
||||||
|
*.cmd text eol=crlf
|
||||||
|
*.bat text eol=crlf
|
Loading…
Reference in New Issue