docs: forbid git attributes

This commit is contained in:
bookug 2018-11-04 16:11:39 +08:00
parent 3ec472d46f
commit eb1c94c26e
1 changed files with 21 additions and 19 deletions

40
.gitattributes vendored
View File

@ -1,36 +1,38 @@
# https://git-scm.com/docs/gitattributes # https://git-scm.com/docs/gitattributes
# We find that using this file may cause problem between different branches
# Therefore, all are commented.
# Set the default behavior, in case people don't have core.autocrlf set. # Set the default behavior, in case people don't have core.autocrlf set.
* text=auto #* text=auto
*.txt text #*.txt text
*.vcproj text eol=crlf #*.vcproj text eol=crlf
*.sh text eol=lf #*.sh text eol=lf
*.py eol=lf #*.py eol=lf
*.c text eol=lf #*.c text eol=lf
*.h text eol=lf #*.h text eol=lf
*.cpp text eol=lf #*.cpp text eol=lf
*.cu text eol=lf #*.cu text eol=lf
*.md text eol=lf #*.md text eol=lf
*.nt text eol=lf #*.nt text eol=lf
*.sql text eol=lf #*.sql text eol=lf
#*.jpg -text #*.jpg -text
# Explicitly declare text files you want to always be normalized and converted # Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout. # to native line endings on checkout.
#*.c text #*.c text
#*.h text #*.h text
*.md text #*.md text
*.js text #*.js text
*.json text #*.json text
*.wxss text #*.wxss text
*.wxml text #*.wxml text
# Declare files that will always have CRLF line endings on checkout. # Declare files that will always have CRLF line endings on checkout.
#*.sln text eol=crlf #*.sln text eol=crlf
# Denote all files that are truly binary and should not be modified. # Denote all files that are truly binary and should not be modified.
*.png binary #*.png binary
*.jpg binary #*.jpg binary
# Below denotes which file to use git-lfs, large files # Below denotes which file to use git-lfs, large files
#*.zip filter=lfs diff=lfs merge=lfs -text #*.zip filter=lfs diff=lfs merge=lfs -text