Skip to content

Commit 25e322a

Browse files
committed
Add .gitattributes for .NET project
Initialize repository with proper git attributes for consistent line endings and file handling across different platforms.
1 parent e79d870 commit 25e322a

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.gitattributes

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
*.sln text eol=crlf merge=union
7+
*.csproj text eol=crlf merge=union
8+
*.vbproj text eol=crlf merge=union
9+
*.vcxproj text eol=crlf merge=union
10+
*.vcproj text eol=crlf merge=union
11+
*.dbproj text eol=crlf merge=union
12+
*.fsproj text eol=crlf merge=union
13+
*.lsproj text eol=crlf merge=union
14+
*.wixproj text eol=crlf merge=union
15+
*.modelproj text eol=crlf merge=union
16+
*.sqlproj text eol=crlf merge=union
17+
*.wwaproj text eol=crlf merge=union
18+
19+
# Bash scripts should use LF
20+
*.sh text eol=lf
21+
22+
# Powershell scripts should use CRLF
23+
*.ps1 text eol=crlf
24+
25+
# Documentation
26+
*.md text diff=markdown
27+
*.txt text
28+
*.rst text
29+
30+
# Graphics
31+
*.png binary
32+
*.jpg binary
33+
*.jpeg binary
34+
*.gif binary
35+
*.ico binary
36+
*.svg text
37+
38+
# Archives
39+
*.gz binary
40+
*.tar binary
41+
*.zip binary
42+
43+
# Fonts
44+
*.ttf binary
45+
*.eot binary
46+
*.woff binary
47+
*.woff2 binary

0 commit comments

Comments
 (0)