.gitignore for Unreal Engine

42 ignore rules for Unreal Engine, ready to copy into your repository.

Game engine developed by Epic Games

The complete .gitignore for Unreal Engine

# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-03-04 01:31:51 UTC
# Technologies: Unreal Engine

### Unreal Engine ###
.vs/
*.slo
*.lo
# Object file
*.o
# Object file
*.obj
*.gch
*.pch
# iOS app archive
*.ipa
# Shared object
*.so
# macOS dynamic library
*.dylib
# Dynamic link library
*.dll
*.mod
*.lai
*.la
# Static library
*.a
# Library file
*.lib
# Windows executable
*.exe
# Compiler output
*.out
*.xcodeproj
# Application bundle
*.app
*.xcworkspace
# Visual Studio solution
*.sln
# Solution user options
*.suo
*.opensdf
*.sdf
*.VC.db
*.VC.opendb
.vsconfig
SourceArt/**/*.png
SourceArt/**/*.tga
Binaries/*
Plugins/**/Binaries/*
Build/*
!Build/*/
Build/*/**
!Build/*/PakBlacklist*.txt
!Build/**/*.ico
*_BuiltData.uasset
Saved/*
Intermediate/*
Plugins/**/Intermediate/*
DerivedDataCache/*

What these Unreal Engine rules actually ignore

Every pattern below, and why it belongs in your .gitignore.

Visual Studio 2015 user specific files

Pattern What it ignores
.vs/ Visual Studio 2015 user specific files

Compiled Object files

Pattern What it ignores
*.slo Compiled Object files
*.lo Compiled Object files
*.o Object file
*.obj Object file

Precompiled Headers

Pattern What it ignores
*.gch Precompiled Headers
*.pch Precompiled Headers

Executables

Pattern What it ignores
*.ipa iOS app archive
*.exe Windows executable
*.out Compiler output
*.app Application bundle

Compiled Dynamic libraries

Pattern What it ignores
*.so Shared object
*.dylib macOS dynamic library
*.dll Dynamic link library

Fortran module files

Pattern What it ignores
*.mod Fortran module files

Compiled Static libraries

Pattern What it ignores
*.lai Compiled Static libraries
*.la Compiled Static libraries
*.a Static library
*.lib Library file

These project files can be generated by the engine

Pattern What it ignores
*.xcodeproj These project files can be generated by the engine
*.xcworkspace These project files can be generated by the engine
*.sln Visual Studio solution
*.suo Solution user options
*.opensdf These project files can be generated by the engine
*.sdf These project files can be generated by the engine
*.VC.db These project files can be generated by the engine
*.VC.opendb These project files can be generated by the engine
.vsconfig These project files can be generated by the engine

Precompiled Assets

Pattern What it ignores
SourceArt/**/*.png Precompiled Assets
SourceArt/**/*.tga Precompiled Assets

Binary Files

Pattern What it ignores
Binaries/* Binary Files
Plugins/**/Binaries/* Binary Files

Builds

Pattern What it ignores
Build/* Builds

Whitelist PakBlacklist-<BuildConfiguration>.txt files

Pattern What it ignores
!Build/*/ Whitelist PakBlacklist-<BuildConfiguration>.txt files
Build/*/** Whitelist PakBlacklist-<BuildConfiguration>.txt files
!Build/*/PakBlacklist*.txt Whitelist PakBlacklist-<BuildConfiguration>.txt files

Don't ignore icon files in Build

Pattern What it ignores
!Build/**/*.ico Don't ignore icon files in Build

Built data for maps

Pattern What it ignores
*_BuiltData.uasset Built data for maps

Configuration files generated by the Editor

Pattern What it ignores
Saved/* Configuration files generated by the Editor

Compiled source files for the engine to use

Pattern What it ignores
Intermediate/* Compiled source files for the engine to use
Plugins/**/Intermediate/* Compiled source files for the engine to use

Cache files for the editor to use

Pattern What it ignores
DerivedDataCache/* Cache files for the editor to use

How to use this .gitignore for Unreal Engine

  1. Copy the Unreal Engine rules above, or download the file directly.
  2. Create a file named .gitignore at the root of your Git repository and paste the rules into it.
  3. If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
  4. Commit the .gitignore so everyone on the team shares the same rules.

Other Game Engine .gitignore templates

See every Game Engine template