fix(env): add .gitattributes to automatically change Windows-style line endings (CRLF) to Unix-style line endings (LF)

This commit is contained in:
2026-03-25 01:22:31 +08:00
parent 9afe2dc5b1
commit 6b252598de
2 changed files with 9 additions and 0 deletions

8
.gitattributes vendored Normal file
View File

@@ -0,0 +1,8 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Explicitly declare text files you want to always be normalized and converted to LF on checkout.
*.sh text eol=lf
*.env text eol=lf
.env.example text eol=lf
docker-compose.yml text eol=lf