Created
January 16, 2024 22:04
-
-
Save melcloud/0d5e1d1cac4e3f3c08ae326c5748953b to your computer and use it in GitHub Desktop.
my gitattribute
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################### | |
# Set default behavior to automatically normalize line endings. | |
############################################################################### | |
* text=auto eol=lf | |
*.{cmd,[cC][mM][dD]} text eol=crlf | |
*.{bat,[bB][aA][tT]} text eol=crlf | |
*.{ps1,[pP][sS]1} text eol=crlf | |
*.{psm1,[pP][sS][mM]1} text eol=crlf | |
############################################################################### | |
# behavior for image files | |
# | |
# image files are treated as binary by default. | |
############################################################################### | |
*.jpg binary | |
*.png binary | |
*.gif binary | |
############################################################################### | |
# diff behavior for common document formats | |
# | |
# Convert binary document formats to text before diffing them. This feature | |
# is only available from the command line. Turn it on by uncommenting the | |
# entries below. | |
############################################################################### | |
*.doc diff=astextplain | |
*.DOC diff=astextplain | |
*.docx diff=astextplain | |
*.DOCX diff=astextplain | |
*.dot diff=astextplain | |
*.DOT diff=astextplain | |
*.pdf diff=astextplain | |
*.PDF diff=astextplain | |
*.rtf diff=astextplain | |
*.RTF diff=astextplain |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment