Skip to content

Commit 8cd0cad

Browse files
authored
Merge pull request #292 from julienadam/main
Adding a git attributes file to avoid EOL issues
2 parents 8b0f5ad + 574e6a7 commit 8cd0cad

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.gitattributes

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Set default behavior to automatically normalize line endings.
2+
* text=auto
3+
4+
# Force batch scripts to always use CRLF line endings so that if a repo is accessed
5+
# in Windows via a file share from Linux, the scripts will work.
6+
*.{cmd,[cC][mM][dD]} text eol=crlf
7+
*.{bat,[bB][aA][tT]} text eol=crlf
8+
*.{ics,[iI][cC][sS]} text eol=crlf
9+
10+
# Force bash scripts to always use LF line endings so that if a repo is accessed
11+
# in Unix via a file share from Windows, the scripts will work.
12+
*.sh text eol=lf

0 commit comments

Comments
 (0)