|
| 1 | +# Common settings that generally should always be used with your language specific settings |
| 2 | + |
| 3 | +# Auto detect text files and perform LF normalization |
| 4 | +# https://www.davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/ |
| 5 | +* text=auto |
| 6 | + |
| 7 | +# |
| 8 | +# The above will handle all files NOT found below |
| 9 | +# |
| 10 | + |
| 11 | +# Documents |
| 12 | +*.bibtex text diff=bibtex |
| 13 | +*.doc diff=astextplain |
| 14 | +*.DOC diff=astextplain |
| 15 | +*.docx diff=astextplain |
| 16 | +*.DOCX diff=astextplain |
| 17 | +*.dot diff=astextplain |
| 18 | +*.DOT diff=astextplain |
| 19 | +*.pdf diff=astextplain |
| 20 | +*.PDF diff=astextplain |
| 21 | +*.rtf diff=astextplain |
| 22 | +*.RTF diff=astextplain |
| 23 | +*.md text |
| 24 | +*.tex text diff=tex |
| 25 | +*.adoc text |
| 26 | +*.textile text |
| 27 | +*.mustache text |
| 28 | +*.csv text |
| 29 | +*.tab text |
| 30 | +*.tsv text |
| 31 | +*.txt text |
| 32 | +*.sql text |
| 33 | + |
| 34 | +# Graphics |
| 35 | +*.png binary |
| 36 | +*.jpg binary |
| 37 | +*.jpeg binary |
| 38 | +*.gif binary |
| 39 | +*.tif binary |
| 40 | +*.tiff binary |
| 41 | +*.ico binary |
| 42 | +# SVG treated as an asset (binary) by default. |
| 43 | +*.svg text |
| 44 | +# If you want to treat it as binary, |
| 45 | +# use the following line instead. |
| 46 | +# *.svg binary |
| 47 | +*.eps binary |
| 48 | + |
| 49 | +# Scripts |
| 50 | +*.bash text eol=lf |
| 51 | +*.sh text eol=lf |
| 52 | +# These are explicitly windows files and should use crlf |
| 53 | +*.bat text eol=crlf |
| 54 | +*.cmd text eol=crlf |
| 55 | +*.ps1 text eol=crlf |
| 56 | + |
| 57 | +# Serialisation |
| 58 | +*.json text |
| 59 | +*.toml text |
| 60 | +*.xml text |
| 61 | +*.yaml text |
| 62 | +*.yml text |
| 63 | + |
| 64 | +# Archives |
| 65 | +*.7z binary |
| 66 | +*.gz binary |
| 67 | +*.tar binary |
| 68 | +*.zip binary |
| 69 | + |
| 70 | +# |
| 71 | +# Exclude files from exporting |
| 72 | +# |
| 73 | + |
| 74 | +.gitattributes export-ignore |
| 75 | +.gitignore export-ignore |
| 76 | + |
| 77 | +## GITATTRIBUTES FOR WEB PROJECTS |
| 78 | +# |
| 79 | +# These settings are for any web project. |
| 80 | +# |
| 81 | +# Details per file setting: |
| 82 | +# text These files should be normalized (i.e. convert CRLF to LF). |
| 83 | +# binary These files are binary and should be left untouched. |
| 84 | +# |
| 85 | +# Note that binary is a macro for -text -diff. |
| 86 | +###################################################################### |
| 87 | + |
| 88 | +# Auto detect |
| 89 | +## Handle line endings automatically for files detected as |
| 90 | +## text and leave all files detected as binary untouched. |
| 91 | +## This will handle all files NOT defined below. |
| 92 | +* text=auto |
| 93 | + |
| 94 | +# Source code |
| 95 | +*.bash text eol=lf |
| 96 | +*.bat text eol=crlf |
| 97 | +*.cmd text eol=crlf |
| 98 | +*.coffee text |
| 99 | +*.css text |
| 100 | +*.htm text diff=html |
| 101 | +*.html text diff=html |
| 102 | +*.inc text |
| 103 | +*.ini text |
| 104 | +*.js text |
| 105 | +*.json text |
| 106 | +*.jsx text |
| 107 | +*.less text |
| 108 | +*.ls text |
| 109 | +*.map text -diff |
| 110 | +*.od text |
| 111 | +*.onlydata text |
| 112 | +*.php text diff=php |
| 113 | +*.pl text |
| 114 | +*.ps1 text eol=crlf |
| 115 | +*.py text diff=python |
| 116 | +*.rb text diff=ruby |
| 117 | +*.sass text |
| 118 | +*.scm text |
| 119 | +*.scss text diff=css |
| 120 | +*.sh text eol=lf |
| 121 | +*.sql text |
| 122 | +*.styl text |
| 123 | +*.tag text |
| 124 | +*.ts text |
| 125 | +*.tsx text |
| 126 | +*.xml text |
| 127 | +*.xhtml text diff=html |
| 128 | + |
| 129 | +# Docker |
| 130 | +*.dockerignore text |
| 131 | +Dockerfile text |
| 132 | + |
| 133 | +# Documentation |
| 134 | +*.ipynb text |
| 135 | +*.markdown text |
| 136 | +*.md text |
| 137 | +*.mdwn text |
| 138 | +*.mdown text |
| 139 | +*.mkd text |
| 140 | +*.mkdn text |
| 141 | +*.mdtxt text |
| 142 | +*.mdtext text |
| 143 | +*.txt text |
| 144 | +AUTHORS text |
| 145 | +CHANGELOG text |
| 146 | +CHANGES text |
| 147 | +CONTRIBUTING text |
| 148 | +COPYING text |
| 149 | +copyright text |
| 150 | +*COPYRIGHT* text |
| 151 | +INSTALL text |
| 152 | +license text |
| 153 | +LICENSE text |
| 154 | +NEWS text |
| 155 | +readme text |
| 156 | +*README* text |
| 157 | +TODO text |
| 158 | + |
| 159 | +# Templates |
| 160 | +*.dot text |
| 161 | +*.ejs text |
| 162 | +*.haml text |
| 163 | +*.handlebars text |
| 164 | +*.hbs text |
| 165 | +*.hbt text |
| 166 | +*.jade text |
| 167 | +*.latte text |
| 168 | +*.mustache text |
| 169 | +*.njk text |
| 170 | +*.phtml text |
| 171 | +*.tmpl text |
| 172 | +*.tpl text |
| 173 | +*.twig text |
| 174 | +*.vue text |
| 175 | + |
| 176 | +# Linters |
| 177 | +.csslintrc text |
| 178 | +.eslintrc text |
| 179 | +.htmlhintrc text |
| 180 | +.jscsrc text |
| 181 | +.jshintrc text |
| 182 | +.jshintignore text |
| 183 | +.stylelintrc text |
| 184 | + |
| 185 | +# Configs |
| 186 | +*.bowerrc text |
| 187 | +*.cnf text |
| 188 | +*.conf text |
| 189 | +*.config text |
| 190 | +.babelrc text |
| 191 | +.browserslistrc text |
| 192 | +.editorconfig text |
| 193 | +.env text |
| 194 | +.gitattributes text |
| 195 | +.gitconfig text |
| 196 | +.htaccess text |
| 197 | +*.lock text -diff |
| 198 | +package-lock.json text -diff |
| 199 | +*.npmignore text |
| 200 | +*.yaml text |
| 201 | +*.yml text |
| 202 | +browserslist text |
| 203 | +Makefile text |
| 204 | +makefile text |
| 205 | + |
| 206 | +# Heroku |
| 207 | +Procfile text |
| 208 | +.slugignore text |
| 209 | + |
| 210 | +# Graphics |
| 211 | +*.ai binary |
| 212 | +*.bmp binary |
| 213 | +*.eps binary |
| 214 | +*.gif binary |
| 215 | +*.gifv binary |
| 216 | +*.ico binary |
| 217 | +*.jng binary |
| 218 | +*.jp2 binary |
| 219 | +*.jpg binary |
| 220 | +*.jpeg binary |
| 221 | +*.jpx binary |
| 222 | +*.jxr binary |
| 223 | +*.pdf binary |
| 224 | +*.png binary |
| 225 | +*.psb binary |
| 226 | +*.psd binary |
| 227 | +# SVG treated as an asset (binary) by default. |
| 228 | +*.svg text |
| 229 | +# If you want to treat it as binary, |
| 230 | +# use the following line instead. |
| 231 | +# *.svg binary |
| 232 | +*.svgz binary |
| 233 | +*.tif binary |
| 234 | +*.tiff binary |
| 235 | +*.wbmp binary |
| 236 | +*.webp binary |
| 237 | + |
| 238 | +# Audio |
| 239 | +*.kar binary |
| 240 | +*.m4a binary |
| 241 | +*.mid binary |
| 242 | +*.midi binary |
| 243 | +*.mp3 binary |
| 244 | +*.ogg binary |
| 245 | +*.ra binary |
| 246 | + |
| 247 | +# Video |
| 248 | +*.3gpp binary |
| 249 | +*.3gp binary |
| 250 | +*.as binary |
| 251 | +*.asf binary |
| 252 | +*.asx binary |
| 253 | +*.fla binary |
| 254 | +*.flv binary |
| 255 | +*.m4v binary |
| 256 | +*.mng binary |
| 257 | +*.mov binary |
| 258 | +*.mp4 binary |
| 259 | +*.mpeg binary |
| 260 | +*.mpg binary |
| 261 | +*.ogv binary |
| 262 | +*.swc binary |
| 263 | +*.swf binary |
| 264 | +*.webm binary |
| 265 | + |
| 266 | +# Archives |
| 267 | +*.7z binary |
| 268 | +*.gz binary |
| 269 | +*.jar binary |
| 270 | +*.rar binary |
| 271 | +*.tar binary |
| 272 | +*.zip binary |
| 273 | + |
| 274 | +# Fonts |
| 275 | +*.ttf binary |
| 276 | +*.eot binary |
| 277 | +*.otf binary |
| 278 | +*.woff binary |
| 279 | +*.woff2 binary |
| 280 | + |
| 281 | +# Executables |
| 282 | +*.exe binary |
| 283 | +*.pyc binary |
0 commit comments