File tree 1 file changed +30
-2
lines changed
1 file changed +30
-2
lines changed Original file line number Diff line number Diff line change 1
- # Set the default behavior, in case people don't have core.autocrlf set.
2
- * text =auto eol =lf
1
+ # https://docs.github.com/en/github/using-git/configuring-git-to-handle-line-endings
2
+ # https://git-scm.com/docs/gitattributes
3
+ # https://git-scm.com/docs/git-config
4
+ # https://adaptivepatchwork.com/2012/03/01/mind-the-end-of-your-line/
5
+
6
+ # Configure this repository to use Git's type detection algorithm to guess
7
+ # whether a file is text or binary. Text files will have line endings converted
8
+ # as if you had set
9
+ # eol=native
10
+ # That is, on Windows text files will have CRLF line endings in your working
11
+ # directory while on Linux and macOS your text files will have LF line endings
12
+ # in your working directory. In either case, they will have LF line endings in
13
+ # the Git repository itself.
14
+
15
+ * text =auto
16
+
17
+ # Explicitly declare text files you want to always be normalized and converted
18
+ # to native line endings on checkout. Git would likely get these right, but
19
+ # we can be sure by adding them here.
20
+ * .c text
21
+ * .cpp text
22
+ * .h text
23
+ * .md text
24
+ * .yaml text
25
+ * .yml text
26
+
27
+ # Denote all files that are truly binary and should not be modified.
28
+ # Even if we don't have any of these, they make a good example.
29
+ * .png binary
30
+ * .jpg binary
You can’t perform that action at this time.
0 commit comments