-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitattributes
50 lines (40 loc) · 1.55 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Inside your project, there should be a .gitattributes file. Most of the time, it should look like below
# https://stackoverflow.com/questions/21822650/disable-git-eol-conversions
# https://help.github.com/en/articles/dealing-with-line-endings
# https://code.visualstudio.com/docs/remote/troubleshooting#_resolving-git-line-ending-issues-in-containers-resulting-in-many-modified-files
# Force everything to be LF, except for Windows batch files that require CRLF:
* text=auto eol=lf
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
# Disable line ending conversation entirely
# git config --global core.autocrlf false
# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
# Change * text=auto to * text=false to disable automatic handling
* text=auto
# Git will always convert line endings to `LF` on checkout
*.sh text eol=lf
*.py text eol=lf
*.php text eol=lf
requirements.txt text eol=lf
# Never modify line endings of our bash scripts
# *.sh -crlf
#
# The above will handle all files NOT found below
#
# These files are text and should be normalized (Convert crlf => lf)
#*.css text
#*.html text
#*.java text
#*.js text
#*.json text
#*.properties text
#*.txt text
#*.xml text
# These files are binary and should be left untouched
# (binary is macro for -text -diff)
*.class binary
*.jar binary
*.gif binary
*.jpg binary
*.png binary