-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
175 lines (138 loc) · 4.71 KB
/
Copy path.gitattributes
File metadata and controls
175 lines (138 loc) · 4.71 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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
###############################################################################
# .gitattributes
# .NET Core Application Template
#
# Goals:
# - Normalize text line endings consistently.
# - Keep repository text files stored with LF endings unless (Windows/Visual Studio-oriented files).
# - Preserve CRLF only where Windows command scripts require it.
# - Protect binary files from text normalization and noisy diffs.
###############################################################################
# Normalize all text files to LF.
# This keeps the repository and working tree consistent across Windows, Linux, and macOS.
* text=auto eol=lf
###############################################################################
# Windows command scripts
###############################################################################
*.bat text eol=crlf
*.cmd text eol=crlf
###############################################################################
# Shell / scripting files
###############################################################################
*.sh text eol=lf
*.bash text eol=lf
*.zsh text eol=lf
*.ps1 text eol=lf
*.psm1 text eol=lf
*.psd1 text eol=lf
###############################################################################
# .NET / C# project files (Windows/Visual Studio-oriented files)
###############################################################################
*.cs text eol=crlf diff=csharp
*.cshtml text eol=crlf
*.razor text eol=crlf
*.csproj text eol=crlf
*.vbproj text eol=crlf
*.fsproj text eol=crlf
*.sln text eol=crlf
*.slnx text eol=crlf
*.props text eol=crlf
*.targets text eol=crlf
*.nuspec text eol=crlf
*.resx text eol=crlf
*.config text eol=crlf
###############################################################################
# Web assets (Windows/Visual Studio-oriented files)
###############################################################################
*.html text eol=crlf
*.htm text eol=crlf
*.css text eol=crlf
*.scss text eol=crlf
*.sass text eol=crlf
*.js text eol=crlf
*.jsx text eol=crlf
*.ts text eol=crlf
*.tsx text eol=crlf
*.mjs text eol=crlf
*.cjs text eol=crlf
###############################################################################
# Configuration files (Windows/Visual Studio-oriented files)
###############################################################################
*.json text eol=crlf
*.jsonc text eol=crlf
*.xml text eol=crlf
*.yml text eol=lf
*.yaml text eol=lf
*.toml text eol=crlf
*.ini text eol=crlf
*.env text eol=crlf
*.example text eol=crlf
*.editorconfig text eol=crlf
###############################################################################
# SQL / database scripts (Windows/Visual Studio-oriented files)
###############################################################################
*.sql text eol=crlf
###############################################################################
# Documentation (Windows/Visual Studio-oriented files)
###############################################################################
*.md text eol=crlf diff=markdown
*.txt text eol=crlf
*.rst text eol=crlf
###############################################################################
# Docker / container files
###############################################################################
Dockerfile text eol=lf
*.dockerfile text eol=lf
.dockerignore text eol=lf
###############################################################################
# GitHub / CI files (Windows/Visual Studio-oriented files)
###############################################################################
.github/**/*.yml text eol=lf
.github/**/*.yaml text eol=lf
###############################################################################
# Binary files
###############################################################################
# Images
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.webp binary
*.svgz binary
# Fonts
*.ttf binary
*.otf binary
*.woff binary
*.woff2 binary
*.eot binary
# Archives
*.zip binary
*.7z binary
*.rar binary
*.tar binary
*.gz binary
# Documents
*.pdf binary
*.doc binary
*.docx binary
*.xls binary
*.xlsx binary
*.ppt binary
*.pptx binary
# Database files
*.db binary
*.sqlite binary
*.sqlite3 binary
*.mdf binary
*.ldf binary
*.bak binary
# Keys / certificates
*.pfx binary
*.snk binary
# Executables / compiled output
*.exe binary
*.dll binary
*.pdb binary
*.so binary
*.dylib binary