Open rogerxu opened 7 years ago
Git - gitattributes Documentation
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto eol=lf
# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text
# Declare files that will always have LF line endings on checkout.
*.sh text eol=lf
# Declare files that will always have CRLF line endings on checkout.
*.bat text eol=crlf
*.ini text eol=crlf
# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.gif binary
*.bmp binary
*.ico binary
*.pdf binary
text
- convert to LF line endings when check ineol
- convert line endings when check out
Dealing with line endings - User Documentation