Add .gitattributes for line ending consistency

This commit is contained in:
e41212020_Faris Hasan 2025-07-02 18:36:08 +07:00
parent e6fe792949
commit d67532ac82
1 changed files with 24 additions and 0 deletions

24
.gitattributes vendored Normal file
View File

@ -0,0 +1,24 @@
# Pastikan file teks menggunakan LF (Line Feed) di dalam repositori Git
# Ini akan mencegah masalah line ending antar OS (Windows vs Linux/macOS)
*.txt text eol=lf
*.js text eol=lf
*.json text eol=lf
*.css text eol=lf
*.html text eol=lf
*.php text eol=lf
*.md text eol=lf
*.xml text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.sh text eol=lf
*.py text eol=lf
# Contoh untuk file biner (Git tidak akan mencoba memprosesnya sebagai teks)
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.pdf binary
*.zip binary
*.exe binary