Add .gitattributes for line ending consistency
This commit is contained in:
parent
e6fe792949
commit
d67532ac82
|
@ -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
|
Loading…
Reference in New Issue