Skip to content

Instantly share code, notes, and snippets.

@Gonzales
Last active December 30, 2015 03:09
Show Gist options
  • Save Gonzales/7767837 to your computer and use it in GitHub Desktop.
Save Gonzales/7767837 to your computer and use it in GitHub Desktop.
.gitattributes for .NET Contributors. Copy to Project root .
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs text diff=csharp
*.java text diff=java
*.html text diff=html
*.css text
*.js text
*.sql text
*.sln merge=union eol=crlf
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment