Le .gitattributes parfait
Combien de fois nous sommes-nous fait avoir avec le fichier ".gitattributes" ? Combien de fois il ne mettait pas les bons fins de ligne, ou qu'ils n'encodaient pas correctement les images ? Voici le contenu d'un ".gitattributes" parfait qui vous résoudra tout vos soucis: # 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) # # source code *.php text *.css text *.sass text *.scss text *.less text *.styl text *.js text *.coffee text *.json text *.htm text *.html text *.xml text *.svg text *.txt text *.ini text *.inc text *.pl text *.rb text *.py text *.scm text *.sql text *.sh text *.bat text # templates *.ejs text *.hbt text *.jade text *.haml text *.hbs text *.dot text *.tmpl text *.phtml text # server ...