build: git config (#2474)

This commit is contained in:
Zuo Jiangtao 2023-01-18 11:14:58 +08:00 committed by GitHub
parent 4dc5385104
commit 0ab2a541cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
.gitattributes vendored Normal file
View File

@ -0,0 +1,11 @@
# https://docs.github.com/cn/get-started/getting-started-with-git/configuring-git-to-handle-line-endings
# Automatically normalize line endings (to LF) for all text-based files.
* text=auto eol=lf
# Declare files that will always have CRLF line endings on checkout.
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
# Denote all files that are truly binary and should not be modified.
*.{ico,png,jpg,jpeg,gif,webp,svg,woff,woff2} binary