From e032a17c679c9530084b97598705c9cac6bc54b3 Mon Sep 17 00:00:00 2001 From: Ali Servet Donmez Date: Mon, 26 May 2014 09:48:56 +0200 Subject: [PATCH] Add a good default .gitattributes for web development --- .gitattributes | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..74f46c6 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,41 @@ +## https://github.com/Danimoth/gitattributes/blob/e9c4312cabdbcf7f66205f3c3271336d4563e92c/Web.gitattributes + +# These settings are for any web project + +# Handle line endings automatically for files detected as text +# and leave all files detected as binary untouched. +* text=auto + +# +# The above will handle all files NOT found below +# + +# These files are text and should be normalized (Convert crlf => lf) +*.php text +*.css text +*.js text +*.htm text +*.html text +*.xml text +*.txt text +*.ini text +*.inc text +.htaccess text + +# These files are binary and should be left untouched +# (binary is a macro for -text -diff) +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.mov binary +*.mp4 binary +*.mp3 binary +*.flv binary +*.fla binary +*.swf binary +*.gz binary +*.zip binary +*.7z binary +*.ttf binary