Skip to content

Commit

Permalink
Merge pull request #292 from julienadam/main
Browse files Browse the repository at this point in the history
Adding a git attributes file to avoid EOL issues
  • Loading branch information
mikesir87 authored Sep 20, 2024
2 parents 8b0f5ad + 574e6a7 commit 8cd0cad
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Set default behavior to automatically normalize line endings.
* text=auto

# Force batch scripts to always use CRLF line endings so that if a repo is accessed
# in Windows via a file share from Linux, the scripts will work.
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
*.{ics,[iI][cC][sS]} text eol=crlf

# 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

0 comments on commit 8cd0cad

Please sign in to comment.