Skip to content

Instantly share code, notes, and snippets.

@elmernocon
Created March 31, 2021 11:40
Show Gist options
  • Save elmernocon/6015373cda66d8fd39ea52a2e514b888 to your computer and use it in GitHub Desktop.
Save elmernocon/6015373cda66d8fd39ea52a2e514b888 to your computer and use it in GitHub Desktop.
Unity .gitattributes file
# Text
*.bat text
*.c text
*.cginc text
*.cpp text
*.cs text diff=csharp
*.h text
*.inc text
*.info text
*.md text
*.rb text
*.shader text
*.s79 text
*.test text
*.txt text
*.xcl text
*.yml text
cakefile text
makefile text
rakefile text
# Binaries
*.dbgdt binary
*.dni binary
*.doc binary
*.ewd binary
*.eww binary
*.mac binary
*.odt binary
*.pdf binary
*.wsdt binary
# Merge files with UnityYAMLMerge.
*.anim merge=unityyamlmerge eol=lf
*.asset merge=unityyamlmerge text=auto
*.controller merge=unityyamlmerge eol=lf
*.mat merge=unityyamlmerge eol=lf
*.meta merge=unityyamlmerge eol=lf
*.physicMaterial merge=unityyamlmerge eol=lf
*.physicsMaterial2D merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
# Collapse files on GitHub.
*.asset linguist-generated
*.mat linguist-generated
*.meta linguist-generated
*.prefab linguist-generated
*.unity linguist-generated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment