Skip to content

Commit

Permalink
CB-9836 Add .gitattributes to prevent CRLF line endings in repos
Browse files Browse the repository at this point in the history
Updates gitattributes to common web project template to help git recognize binary files
  • Loading branch information
daserge committed Nov 3, 2015
1 parent 0ec2949 commit 7682bfe
Showing 1 changed file with 92 additions and 1 deletion.
93 changes: 92 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,94 @@
* text eol=lf
*.jpg binary

# 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 config
.htaccess text

# git config
.gitattributes text
.gitignore text
.gitconfig text

# code analysis config
.jshintrc text
.jscsrc text
.jshintignore text
.csslintrc text

# misc config
*.yaml text
*.yml text
.editorconfig text

# build config
*.npmignore text
*.bowerrc text

# Heroku
Procfile text
.slugignore text

# Documentation
*.md text
LICENSE text
AUTHORS 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
*.eot binary
*.woff binary
*.pyc binary
*.pdf binary

0 comments on commit 7682bfe

Please sign in to comment.