-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitattributes
107 lines (84 loc) · 3.45 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Normalize all non-binary files line endings to LF upon `git add`/`git commit.`
* text=auto
## SOURCE CODE
*.js text
*.go text
*.py text eol=lf
*.css text
*.html text
## BASH SCRIPTS WITHOUT .sh
backup text eol=lf
backups text eol=lf
restore text eol=lf
start text eol=lf
ci_start text eol=lf
entrypoint text eol=lf
## CONFIG
.gitattributes text export-ignore
.gitignore text export-ignore
.editorconfig text
.eslintrc text
.stylelintrc text
.babelrc text
.env text
*.lock text -diff
*.json text eol=lf
*.yaml text eol=lf
*.toml text eol=lf
## DOCUMENTATION
*.md text
LICENSE text
## DOCKER
.dockerignore text
Dockerfile text
## OS/EOL Specific
*.bat text eol=crlf
*.sh text eol=lf
#@ Assets - Diffs are less meaningful, so ignore them.
*.svg text -diff
## FONTS
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary
## GRAPHICS
*.pdf binary
*.png binary
*.gif binary
*.jpg binary
*.jpeg binary
*.webp binary
*.ico binary
## VIDEO
*.webm binary
################################################################################
## INFO
################################################################################
### WHAT IS THIS FILE?
# This file when recognized by a git client, will help enforce consistency
# across multiple environments/systems in regards to line endings(CRLF & LF).
# Documentation - `.gitattributes`: https://git-scm.com/docs/gitattributes
# It provides fine-grained control in comparison to the `core.autocrlf` and
# `core.eol` git settings that may vary per system, while the `.gitattributes`
# file has a higher priority than `.gitconfig` and travels with the repository.
# Documentation - `.gitconfig`: https://git-scm.com/docs/git-config
### WHY SHOULD I CARE?
# The desired result is to ensure the repo contains normalized LF line endings,
# notably avoiding unhelpful noise in diffs or issues incurred from mixed line
# endings. Storing as LF ensures no surprises for line endings during checkout.
# Additionally for checkout to the local working directory, line endings can be
# forced to CRLF or LF per file where appropriate, which ensures the files have
# compatible line endings where software expects a specific kind.
### ATTRIBUTES
# `text` normalizes the file(s) line endings to LF upon add/commit. (CRLF -> LF)
# `text=auto` sets `text` if Git decides the matched file is not binary data.
# `eol` enforces a line ending for a file when writing to the working directory.
# `core.autocrlf` when set to `true` or `input` overrides the `core.eol` value.
# `core.eol` is used for any files not explicitly set with an `eol` attr value.
# `core.eol` uses the native line endings for your platform by default.
# `binary` is an alias for `-text -diff`. The file won't be normalized(-text).
# `-diff` indicates not to show a diff. Useful when diffs are not likely to be
# meaningful such as generated content (SVG, Source Maps, Lockfiles).
# `export-ignore` excludes matched files and directories during `git archive`,
# which services like Github use to create releases of a project with.