docs: 更新 README.md,添加 .gitattributes 使用说明
All checks were successful
/ depcheck (push) Successful in 1m37s
/ playwright (push) Successful in 3m27s
/ build-and-deploy-to-vercel (push) Successful in 1m37s

This commit is contained in:
严浩
2024-10-17 12:01:34 +08:00
parent a5ec941074
commit 823f767fc9
2 changed files with 29 additions and 0 deletions

7
.gitattributes vendored
View File

@ -1,3 +1,10 @@
# 如果你先推送了一个.jpg文件然后再推送包含.gitattributes文件的更新Git不会自动重新处理之前的.jpg文件的属性。为使.gitattributes中的新规则生效你可以通过以下步骤重新应用设置
# 1. 删除本地缓存的.jpg文件git rm --cached <file>.jpg
# 2. 重新添加该文件git add <file>.jpg
# 3. 再次提交并推送git commit -m "Apply .gitattributes changes" && git push
# 这样Git将按照.gitattributes中的新规则处理该文件。
* text=auto
# Force the following filetypes to have unix eols, so Windows does not break them