Skip to content

Commit 7682bfe

Browse files
author
daserge
committed
CB-9836 Add .gitattributes to prevent CRLF line endings in repos
Updates gitattributes to common web project template to help git recognize binary files
1 parent 0ec2949 commit 7682bfe

File tree

1 file changed

+92
-1
lines changed

1 file changed

+92
-1
lines changed

.gitattributes

+92-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,94 @@
11
* text eol=lf
2-
*.jpg binary
2+
3+
# source code
4+
*.php text
5+
*.css text
6+
*.sass text
7+
*.scss text
8+
*.less text
9+
*.styl text
10+
*.js text
11+
*.coffee text
12+
*.json text
13+
*.htm text
14+
*.html text
15+
*.xml text
16+
*.svg text
17+
*.txt text
18+
*.ini text
19+
*.inc text
20+
*.pl text
21+
*.rb text
22+
*.py text
23+
*.scm text
24+
*.sql text
25+
*.sh text
26+
*.bat text
27+
28+
# templates
29+
*.ejs text
30+
*.hbt text
31+
*.jade text
32+
*.haml text
33+
*.hbs text
34+
*.dot text
35+
*.tmpl text
36+
*.phtml text
37+
38+
# server config
39+
.htaccess text
40+
41+
# git config
42+
.gitattributes text
43+
.gitignore text
44+
.gitconfig text
45+
46+
# code analysis config
47+
.jshintrc text
48+
.jscsrc text
49+
.jshintignore text
50+
.csslintrc text
51+
52+
# misc config
53+
*.yaml text
54+
*.yml text
55+
.editorconfig text
56+
57+
# build config
58+
*.npmignore text
59+
*.bowerrc text
60+
61+
# Heroku
62+
Procfile text
63+
.slugignore text
64+
65+
# Documentation
66+
*.md text
67+
LICENSE text
68+
AUTHORS text
69+
70+
71+
#
72+
## These files are binary and should be left untouched
73+
#
74+
75+
# (binary is a macro for -text -diff)
376
*.png binary
77+
*.jpg binary
78+
*.jpeg binary
79+
*.gif binary
80+
*.ico binary
81+
*.mov binary
82+
*.mp4 binary
83+
*.mp3 binary
84+
*.flv binary
85+
*.fla binary
86+
*.swf binary
87+
*.gz binary
88+
*.zip binary
89+
*.7z binary
90+
*.ttf binary
91+
*.eot binary
92+
*.woff binary
93+
*.pyc binary
94+
*.pdf binary

0 commit comments

Comments
 (0)