Skip to content

Instantly share code, notes, and snippets.

@retohugi
Created January 14, 2015 15:40
Show Gist options
  • Save retohugi/11cf5cff27cbe40e16a1 to your computer and use it in GitHub Desktop.
Save retohugi/11cf5cff27cbe40e16a1 to your computer and use it in GitHub Desktop.
.gitattributes for Sitecore projects
## Github for Windows default .gitattributes for VS Repos ##
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
# 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=astextplain
## Sitecore specific settings ##
# unset the text attribute and prevent git from normalizing serialized files
*.item -text
*.role -text
@retohugi
Copy link
Author

Side note: I think the whole list of doc files could be ommited. They're not really relevant to our projects, but they come with Github for Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment