Skip to content

Commit

Permalink
Add a .gitattributes file to set LF line endings
Browse files Browse the repository at this point in the history
Also ran the following on my Windows instance:

  git config --global core.autocrlf true
  • Loading branch information
mbland committed Dec 22, 2023
1 parent 673c759 commit e8aa28b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions strcalc/src/main/frontend/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Ensure line endings remain LF on Windows, instead of getting
# translated to CRLF. Otherwise, Bash chokes on \r characters.
# - https://help.github.com/articles/dealing-with-line-endings/
# - https://stackoverflow.com/a/47187309
* text eol=lf

0 comments on commit e8aa28b

Please sign in to comment.