Configure Git LFS for video files

This commit is contained in:
stellahsr 2025-03-06 23:52:01 +08:00
parent 1194c3d0ae
commit 3d57152ade

10
.gitattributes vendored
View File

@ -1,12 +1,9 @@
# HTML code is incorrectly calculated into statistics, so ignore them # HTML code is incorrectly calculated into statistics, so ignore them
*.html linguist-detectable=false *.html linguist-detectable=false
# Auto detect text files and perform LF normalization # Auto detect text files and perform LF normalization
* text=auto eol=lf * text=auto eol=lf
# Ensure shell scripts use LF (Linux style) line endings on Windows # Ensure shell scripts use LF (Linux style) line endings on Windows
*.sh text eol=lf *.sh text eol=lf
# Treat specific binary files as binary and prevent line ending conversion # Treat specific binary files as binary and prevent line ending conversion
*.png binary *.png binary
*.jpg binary *.jpg binary
@ -16,19 +13,18 @@
*.mp3 binary *.mp3 binary
*.zip binary *.zip binary
*.bin binary *.bin binary
# Preserve original line endings for specific document files # Preserve original line endings for specific document files
*.doc text eol=crlf *.doc text eol=crlf
*.docx text eol=crlf *.docx text eol=crlf
*.pdf binary *.pdf binary
# Ensure source code and script files use LF line endings # Ensure source code and script files use LF line endings
*.py text eol=lf *.py text eol=lf
*.js text eol=lf *.js text eol=lf
*.html text eol=lf *.html text eol=lf
*.css text eol=lf *.css text eol=lf
# Specify custom diff driver for specific file types # Specify custom diff driver for specific file types
*.md diff=markdown *.md diff=markdown
*.json diff=json *.json diff=json
*.mp4 filter=lfs diff=lfs merge=lfs -text
*.mov filter=lfs diff=lfs merge=lfs -text
*.webm filter=lfs diff=lfs merge=lfs -text