.gitignore & Git LFS Generator
Generate .gitignore and .gitattributes for Unreal Engine or Unity: ignore generated folders, put assets in Git LFS, lock Unreal assets.
- ✓ Free, no sign-up
- ✓ Works for Unreal Engine & Unity
- ✓ Runs in your browser
Put both files in the project root, next to the .uproject file or the Assets folder, before your first commit. Downloads are saved without the leading dot on some systems; rename them if needed.
Something not working, or an idea to make this tool better? Report a problem or suggest an improvement.
What to commit and what to ignore
| Unreal Engine | Unity | |
|---|---|---|
| Commit | .uproject, Config/, Content/, Source/, Plugins/ (source) | Assets/ (with .meta files), Packages/, ProjectSettings/ |
| Ignore (regenerated) | Binaries/, DerivedDataCache/, Intermediate/, Saved/, .sln | Library/, Temp/, Obj/, Logs/, UserSettings/, .csproj/.sln |
| Git LFS | .uasset, .umap, source art | Textures, models, audio, video, LightingData.asset |
| Text, mergeable | .ini, .uproject, C++ and C# | .unity, .prefab, .meta, C# (with Force Text) |
Unity: always commit the .meta files. They hold every asset’s GUID; losing them breaks references across the project.
Choices worth thinking about
- Baked lighting (Unreal *_BuiltData.uasset): ignoring it keeps the repository small, but everyone has to rebuild lighting. Teams with a dedicated lighting artist often commit it instead.
- Plugin binaries (Unreal): if teammates use the editor without a C++ compiler (Blueprint-only), commit compiled plugin binaries or they cannot open the project.
- Locking (Unreal): binary assets cannot be merged, so two people editing the same map means one loses their work. Lockable files plus
git lfs lockprevent that. - LFS quotas: every Git host limits LFS storage and bandwidth differently. Check yours before pushing gigabytes of art.
Already committed big files without LFS?
Adding a .gitattributes later only affects new commits. To move existing history into LFS, use git lfs migrate import --include="*.uasset,*.umap" (this rewrites history, so coordinate with your team and back up first).
FAQ
What should an Unreal Engine .gitignore contain?
Ignore the folders the engine regenerates on every machine: Binaries, DerivedDataCache, Intermediate and Saved, plus generated project files such as the .sln. Never ignore Content, Config, Source or the .uproject file. Baked lighting (*_BuiltData.uasset) is optional to ignore.
Do I need Git LFS for Unreal or Unity?
Almost always yes. Unreal .uasset and .umap files and most source art are large binary files. Without LFS every version of every binary stays in the repository history forever, which makes clones slow and can exceed your host’s size limits.
Should Unity scenes and prefabs be in Git LFS?
No. With Asset Serialization set to Force Text, scenes, prefabs and most assets are YAML text, so Git can diff and merge them (best with Unity Smart Merge). Put textures, models, audio and video in LFS instead.
What does lockable mean in .gitattributes?
Files marked lockable are read-only until you lock them with git lfs lock. Because binary assets cannot be merged, locking stops two people from editing the same map or Blueprint at the same time. Your Git host must support LFS file locking.
Guides for this tool
- Git LFS for Unreal Engine and Unity: A Practical Setup GuideTutorial · Nov 10, 2026 · 4 min read
More free tools
Unity ↔ Unreal Converter
Convert positions, rotations and scale between Unity (meters, Y-up) and Unreal (centimeters, Z-up).
Open tool →Easing Functions & Curves
Preview every easing curve live and copy ready-to-use code for Unity C# and Unreal C++.
Open tool →Unreal Engine Console Commands & CVars
Searchable list of the Unreal console commands and CVars you actually use for profiling, rendering and debugging, with Unity equivalents.
Open tool →