Ben Lin
2025-03-07 42cf9e613a4c24b1e0ca40b961ebbfe91d0d4122
1
2
3
4
5
6
7
8
9
10
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