-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitattributes
More file actions
50 lines (40 loc) · 1.09 KB
/
.gitattributes
File metadata and controls
50 lines (40 loc) · 1.09 KB
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
# This file is based off of advice from:
# https://rehansaeed.com/gitattributes-best-practices/
# Enforce devs to always use LF, even on Windows
# Note: git will store text files in LF
* text=auto eol=lf
# Force batch scripts to always use CRLF line endings so that if a repo is accessed
# in Windows via a file share from Linux, the scripts will work.
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
*.{ics,[iI][cC][sS]} text eol=crlf
# Force bash scripts to always use LF line endings so that if a repo is accessed
# in Unix via a file share from Windows, the scripts will work.
*.sh text eol=lf
###############################
# Git Large File System (LFS) #
###############################
# Note: I've disabled LFS from below, as it requires some additional setup,
# and I don't want to deal with that right now
# Archives
*.7z binary
*.br binary
*.gz binary
*.tar binary
*.zip binary
# Documents
*.pdf binary
# Images
*.gif binary
*.ico binary
*.jpg binary
*.pdf binary
*.png binary
*.psd binary
*.webp binary
*.jpg binary
# Fonts
*.woff2 binary
*.ttf binary
# Other
*.exe binary