Skip to content

Instantly share code, notes, and snippets.

@Limbicnation
Last active February 26, 2025 17:20
Show Gist options
  • Select an option

  • Save Limbicnation/2af93ed4a4271a33f6ed057b286842bc to your computer and use it in GitHub Desktop.

Select an option

Save Limbicnation/2af93ed4a4271a33f6ed057b286842bc to your computer and use it in GitHub Desktop.
This .gitattributes file is configured for an Unreal Engine project optimized for use with Git LFS.
# Unreal Engine specific content (optimized for WSL)
*.uasset filter=lfs diff=lfs merge=lfs -text
*.umap filter=lfs diff=lfs merge=lfs -text
# Source code and text files (with explicit line endings)
*.cpp text eol=lf
*.h text eol=lf
*.ini text eol=lf
*.uproject text eol=lf
*.txt text eol=lf
* text=auto
# Media and assets (optimized for WSL with LFS)
*.png filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.wav filter=lfs diff=lfs merge=lfs -text
*.mp3 filter=lfs diff=lfs merge=lfs -text
*.mp4 filter=lfs diff=lfs merge=lfs -text
*.fbx filter=lfs diff=lfs merge=lfs -text
*.obj filter=lfs diff=lfs merge=lfs -text
# Script files (with explicit line endings)
*.sh text eol=lf
*.bat text eol=crlf
# Miscellaneous files (optimized for WSL with LFS)
Content/** filter=lfs diff=lfs merge=lfs -text
# Ignore .gitignore files in subdirectories
.*/.gitignore ignore
# Explicitly List Additional File Types
*.json text eol=lf
*.xml text eol=lf
*.cs text eol=lf # If you have any C# scripts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment