-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.gitattributes
More file actions
37 lines (31 loc) · 796 Bytes
/
.gitattributes
File metadata and controls
37 lines (31 loc) · 796 Bytes
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
# Set default behavior to automatically normalize line endings.
* text=auto eol=lf
# Explicitly treat C# files as text for better diff/merge
*.cs text diff=csharp
# Treat project/solution files as text (default merge driver)
*.csproj text
*.sln text
*.vbproj text
*.vcxproj text
*.vcproj text
# Treat binary files as binary (no diff, no auto-merge)
*.jpg binary
*.png binary
*.gif binary
*.ico binary
*.exe binary
*.dll binary
*.pdb binary
*.zip binary
*.7z binary
*.rar binary
# Explicitly disable line ending conversion for binary formats
*.png -text
*.jpg -text
*.gif -text
*.ico -text
# For generated files (like Resources.Designer.cs) - treat as text but ignore in diffs if needed
*.Designer.cs text
# Optional: Prevent accidental commits of large binaries
*.nupkg binary
*.snk binary