commit c271ee406910c886789a4bf6e3bf6d7dfb53f1d0 parent 798a101cfe2e5f673486504c355c6264658ddaed Author: Konstantin Tarkus <hello@tarkus.me> Date: Sat, 28 Feb 2015 00:02:28 +0300 Normalize line endings to LF on checkin and prevent conversion to CRLF For more information visit https://help.github.com/articles/dealing-with-line-endings/ Diffstat:
| M | .gitattributes | | | 23 | ++++++++++++++++++----- |
1 file changed, 18 insertions(+), 5 deletions(-)
diff --git a/.gitattributes b/.gitattributes @@ -1,5 +1,19 @@ -# These attributes affect how the contents stored in the repository are copied -# to the working tree files when commands such as git checkout and git merge run. -# http://git-scm.com/docs/gitattributes +# Automatically normalize line endings for all text-based files +# http://git-scm.com/docs/gitattributes#_end_of_line_conversion +* text=auto -* text=auto -\ No newline at end of file +# For the following file types, normalize line endings to LF on +# checkin and prevent conversion to CRLF when they are checked out +# (this is required in order to prevent newline related issues like, +# for example, after the build script is run) +.* text eol=lf +*.css text eol=lf +*.html text eol=lf +*.jade text eol=lf +*.js text eol=lf +*.json text eol=lf +*.less text eol=lf +*.md text eol=lf +*.sh text eol=lf +*.txt text eol=lf +*.xml text eol=lf