From 584d5301e04c13533d9fc6b48c82215f74145c3a Mon Sep 17 00:00:00 2001 From: kevin-mindverse Date: Thu, 3 Apr 2025 17:36:39 +0800 Subject: [PATCH] a better version of gitattribute --- .gitattributes | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/.gitattributes b/.gitattributes index 50807b2..ece3bd8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,27 +1,5 @@ -# Set default behavior to automatically normalize line endings -* text=auto - -# Force shell scripts to always use LF line endings -*.sh text eol=lf - -# Force bash scripts to always use LF line endings -*.bash text eol=lf - -# Force Python scripts to always use LF line endings -*.py text eol=lf - -# Force Markdown files to always use LF line endings -*.md text eol=lf - -# Force YAML files to always use LF line endings -*.yml text eol=lf -*.yaml text eol=lf - -# Force JSON files to always use LF line endings -*.json text eol=lf - -# Force JavaScript files to always use LF line endings -*.js text eol=lf +# Set all text files to use LF line endings +* text=auto eol=lf # Binary files should not be modified *.png binary