-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitattributes
24 lines (22 loc) · 1.25 KB
/
.gitattributes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# GitHub stores files with 'eol=lf', and for Jekyll it is necessary that
# encoding UTF-8 does not contain the BOM.
# Parameter 'git config --global core.autocrlf true' will return the characters
# \x0D\x0A only when updating a local repository and does not cut off the BOM.
# Therefore when working on Windows in a local repository and transferring files
# to a remote repository in *UTF-8 without the BOM* it is necessary to set
# settings:
# $ git config --global filter.win1251.clean "iconv -f windows-1251 -t utf-8"
# $ git config --global filter.win1251.smudge "iconv -f utf-8 -t windows-1251"
# $ git config --global filter.win1251.required true
# To view the endline in the files you can use the command 'git ls-files --eol'
# It can be specified: 'w/crlf', 'w/lf', 'w/mixed'
# Auto detect text files and perform CRLF normalization
* text eol=crlf
# For the work in GitHub on Windows with transferring files to a remote
# repository in UTF-8 without BOOM
*.html filter=win1251
*.css whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.jpg -text -diff
*.md whitespace=trailing-space,space-before-tab,indent-with-non-tab
*.png -text -diff
*.svg whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2