Skip to content

Instantly share code, notes, and snippets.

@pferreirafabricio
Last active June 4, 2022 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pferreirafabricio/0d9e47adf7772c195dae3b57b5aa9ba0 to your computer and use it in GitHub Desktop.
Save pferreirafabricio/0d9e47adf7772c195dae3b57b5aa9ba0 to your computer and use it in GitHub Desktop.
Example o a .gitattributes file for correct identification of languages on GitHub
# Auto detect text files and perform LF normalization
* text=auto
*.cs linguist-language=csharp
*.csproj linguist-language=csharp
*.sln linguist-language=csharp
*.md linguist-detectable=true
*.md linguist-documentation=false
# And ignore those repositories considering them as documentation
src/*/wwwroot/* linguist-documentation
wwwroot/** linguist-documentation
*/bin/* linguist-documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment