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
# Every text file is LF, in the repository and on disk.
#
# Git already stores LF, so this does not rewrite history: it changes what a
# checkout puts in the working tree. Without it, `core.autocrlf` hands Windows
# CRLF while the formatters write LF, and `--check` runs then report nearly
# every file as unformatted when nothing is actually wrong.
*
# Declared binary so git never inspects or rewrites their bytes. The `text=auto`
# heuristic already catches these by their NUL bytes, but a format that happens
# to carry none in its first 8 KB would be corrupted silently, and images are
# not worth that risk.
*.png*.jpg*.jpeg*.gif*.ico*.webp*.avif*.woff*.woff2*.ttf*.otf*.pdf*.mp3*.wav*.ogg*.mp4*.webm*.zip*.gz
# The exception to the rule above: cmd.exe needs CRLF.
*.bat*.cmd
# Kept from the previous file: both are already covered by the rule above,
# and both are load-bearing enough to stay said out loud.
.githooks/**.sh