Skip to content

Instantly share code, notes, and snippets.

@MuffinKing-jpeg
Created May 27, 2023 20:33
Show Gist options
  • Save MuffinKing-jpeg/9266bb170e52825ef769f15f3587f78c to your computer and use it in GitHub Desktop.
Save MuffinKing-jpeg/9266bb170e52825ef769f15f3587f78c to your computer and use it in GitHub Desktop.
.gitattributes For web projects
## GITATTRIBUTES FOR WEB PROJECTS
######################################################################
# Auto detect
##* text=auto
# Source code
*.bash text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.coffee text
*.css text diff=css
*.htm text diff=html
*.html text diff=html
*.inc text
*.ini text
*.js text
*.json text
*.jsx text
*.less text
*.ls text
*.map text -diff
*.od text
*.onlydata text
*.php text diff=php
*.pl text
*.ps1 text eol=crlf
*.py text diff=python
*.rb text diff=ruby
*.scss text diff=css
*.sh text eol=lf
.husky/* text eol=lf
*.xhtml text diff=html
# Documentation
*.ipynb text eol=lf
*.markdown text diff=markdown
*.md text diff=markdown
*.mdwn text diff=markdown
*.mdown text diff=markdown
*.mkd text diff=markdown
*.mkdn text diff=markdown
*.lock text -diff
package.json text eol=lf
package-lock.json text eol=lf -diff
pnpm-lock.yaml text eol=lf -diff
# SVG treated as an asset (binary) by default.
*.svg text
# If you want to treat it as binary,
# use the following line instead.
# *.svg binary
*.svgz binary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment