Skip to content

Commit cfdc253

Browse files
Add .gitattributes for line endings in .bat, .cmd and .sh scripts (#103)
1 parent 04f087e commit cfdc253

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Set default behavior to automatically normalize line endings.
2+
* text=auto
3+
4+
# Force bash scripts to always use lf line endings so that if a repo is accessed
5+
# in Unix via a file share from Windows, the scripts will work.
6+
*.sh text eol=lf
7+
8+
# Likewise, force cmd and batch scripts to always use crlf
9+
*.cmd text eol=crlf
10+
*.bat text eol=crlf

0 commit comments

Comments
 (0)