Created
May 27, 2023 20:33
-
-
Save MuffinKing-jpeg/9266bb170e52825ef769f15f3587f78c to your computer and use it in GitHub Desktop.
.gitattributes For web projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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