Skip to content

Commit

Permalink
Configure git to handle end of line markers
Browse files Browse the repository at this point in the history
  • Loading branch information
buehner committed Nov 13, 2015
1 parent 4c3907f commit e4d59c6
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .gitattributes
@@ -0,0 +1,40 @@
# Credits go to https://github.com/Danimoth/gitattributes
# See also http://stackoverflow.com/a/10855862

# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto

#
# The above will handle all files NOT found below
#
# These files are text and should be normalized (Convert crlf => lf)
*.css text
*.df text
*.htm text
*.html text
*.java text
*.js text
*.json text
*.jsp text
*.jspf text
*.properties text
*.sh text
*.svg text
*.tld text
*.txt text
*.xml text

# These files are binary and should be left untouched
# (binary is a macro for -text -diff)
*.class binary
*.dll binary
*.ear binary
*.gif binary
*.ico binary
*.jar binary
*.jpg binary
*.jpeg binary
*.png binary
*.so binary
*.war binary

0 comments on commit e4d59c6

Please sign in to comment.