-
-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy path.gitattributes
More file actions
41 lines (36 loc) · 1.44 KB
/
.gitattributes
File metadata and controls
41 lines (36 loc) · 1.44 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
# -----------------------------------------------------------------------------
# Normalize all text files to LF in the repository.
# This avoids mixed CRLF/LF line endings across Windows/Linux/macOS and prevents
# IDE warnings like "Inconsistent line separators".
# -----------------------------------------------------------------------------
* text=auto eol=lf
# -----------------------------------------------------------------------------
# Explicit binary files (never normalize, never treat as text)
# -----------------------------------------------------------------------------
*.bin binary
*.a binary
*.7z binary
*.zip binary
*.png binary
*.PNG binary
*.jpg binary
*.gif binary
# SVG is technically text, but often used like an image. Mark as binary to avoid noisy diffs.
*.svg binary
*.SVG binary
# -----------------------------------------------------------------------------
# Office / document formats (avoid useless diffs)
# Source: https://medium.com/@mbrehin/git-advanced-diff-odt-pdf-doc-xls-ppt-25afbf4f1105
# -----------------------------------------------------------------------------
*.doc diff=doc
*.xls diff=xls
*.ppt diff=ppt
*.odt diff=odt
*.pdf diff=pdf
# -----------------------------------------------------------------------------
# Windows-only script formats should remain CRLF
# -----------------------------------------------------------------------------
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
*.sh text eol=lf