You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

295 lines
6.7 KiB

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