From d67532ac82894521f96b74ab496a5bb6a7ab4edb Mon Sep 17 00:00:00 2001 From: e41212020_Faris Hasan <100421748+faris2000111@users.noreply.github.com> Date: Wed, 2 Jul 2025 18:36:08 +0700 Subject: [PATCH] Add .gitattributes for line ending consistency --- .gitattributes | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8133f3d --- /dev/null +++ b/.gitattributes @@ -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 \ No newline at end of file