From 198108ff5f7df40f34b2c3b11d0853a1b9a500e2 Mon Sep 17 00:00:00 2001 From: Stefan Date: Sat, 29 Aug 2026 21:15:44 +0200 Subject: [PATCH] Zeilenenden auf LF festlegen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gilt unabhängig vom lokalen core.autocrlf und damit auch für Klone auf anderen Rechnern. Wichtig, sobald Shell-Skripte im Container laufen: mit CRLF scheitern die dort an "bad interpreter: /bin/sh^M". Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01GR4bNaj9GtRu57J4Niii8o --- .gitattributes | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..26b1adc --- /dev/null +++ b/.gitattributes @@ -0,0 +1,18 @@ +# Einheitlich LF - im Repository wie im Arbeitsverzeichnis. +# +# Wirkt unabhängig davon, wie core.autocrlf auf dem jeweiligen Rechner +# eingestellt ist, und gilt darum auch für Klone auf anderen Maschinen. +# Wichtig für alles, was im Container läuft: ein Shell-Skript mit CRLF +# scheitert dort mit "bad interpreter: /bin/sh^M". +* text=auto eol=lf + +# Binärdateien nicht anfassen +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.webp binary +*.ico binary +*.mp3 binary +*.woff2 binary +*.sqlite binary