-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitattributes
90 lines (80 loc) · 2.27 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
#
# https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes
# https://adaptivepatchwork.com/2012/03/01/mind-the-end-of-your-line/
# https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings
#
# The git config core.autocrlf command is used to change how Git handles line endings. It takes a single argument.
#
# On Linux, you simply pass input to the configuration. For example:
# Configure Git to ensure line endings in files you checkout are correct for Linux
# $ git config --global core.autocrlf input
#
# To avoid losing any local changes to files in the repository,
# add & commit any outstanding changes by running the following commands:
# $ git add . -u
# $ git commit -m "Saving files before refreshing line endings"
#
# To update all files on the current branch to reflect the new configuration,
# run the following command:
# $ git add --renormalize .
#
# To display the rewritten, normalized files, run the following command:
# $ git status
#
# Optionally, to commit any outstanding changes in your repository, run the following command.
# $ git commit -m "Normalize all the line endings"
# Set the default behavior, in case people don't have core.autocrlf set.
# * text=auto
* text eol=lf
#
# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
# --- Text Files ----------------------------------------------
# --- Git Files ---
*.gitattributes text
*.gitignore text
# --- Document Files ---
*.md text
*.txt text
README text
LICENSE text
CODEOWNERS text
CONTRIBUTING text
CONTRIBUTORS text
# --- Config Files ---
*.nix text
*.cfg text
*.conf text
*.ini text
*.json text
*.toml text
*.xml text
*.yaml text
# --- Lockfiles ---
*.lock text
# --- Shell Scripts ---
*.bash text
*.fish text
*.nu text
*.py text
*.sh text
*.zsh text
# --- Code Files ---
*.c text
*.h text
*.pl text
*.css text
*.scss text
*.sass text
*.html text
*.js text
*.jsx text
*.mjs text
*.rs text
# --- Windows ----------------------------------------------
# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf
# --- Binaries ---------------------------------------------
# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary