Skip to content

Commit

Permalink
chore: add .gitsttribute to avoit eol problem in future
Browse files Browse the repository at this point in the history
  • Loading branch information
LinjingZhang committed Dec 2, 2024
1 parent fec7650 commit 0e77bb8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Configuration to handle line endings for working with Windows and Unix
# Reference:
# https://help.github.com/articles/dealing-with-line-endings/
# https://git-scm.com/docs/gitattributes#_checking_out_and_checking_in

* text=auto

*.c text
*.cpp text
*.h text
*.hpp text
*.ino text
*.py text


*.sh text eol=lf
*.bat text eol=crlf

0 comments on commit 0e77bb8

Please sign in to comment.