How to set up a .gitignore file for Unreal Engine
Set up your Git repository properly with a proper .gitignore configuration. Download our template and learn how to customize it for your needs.
A .gitignore file is a crucial component for managing your Unreal Engine project with Git. It is a set of rules that tell Git which files to exclude from version control. A .gitignore has to be configured based on the game engine you use. We also have a .gitignore template for Unity.
Why do you need a .gitignore?
Without it you would upload too many unnecessary files into your repository. Files in folders like DerivedDataCache, Intermediate, Saved, and Build are generated locally during your work and clutter up your repository if included. By excluding these from version control, your repository stays clean and efficient.
Use this example and add it to your Unreal Engine project
Download this .gitignore file and paste it to the root folder of your project. When you open it, you will see a set of rules that are specific to Unreal Engine. A .gitignore file for a Unity or a Godot project will look differently.
Share the .gitignore file with your team
The rules in the .gitignore file should apply to everyone on your team. Therefore, the next step is to commit and push it to the repository. Afterwards, everyone should pull your commit containing the .gitignore file. In most cases, you won't need to modify it further.
Customizing your .gitignore
If you have specific requirements, you can tailor your .gitignore file accordingly. For example, some people choose to ignore the plugins folder and use Git submodules instead, while others may not. To customize, simply use a text editor to add rules. Each rule is defined by a pattern, which includes the following symbols:
By adding an exclamation mark "!", you allow files and folders to be included, even if they were previously ignored.
Adding a local (personal) .gitignore
If you need a personal .gitignore that isn't shared with the team, you can use a special file located in the hidden ".git" folder. Inside this folder, navigate to the "info" directory. Here, you'll find a file named exclude. You can modify this file using the same rules as .gitignore, but the key difference is that these rules will only apply to your local environment and won't be shared with your team.
Git for artists
Introducing a new GitLab integration
Introducing our new integration to GitLab, which creates repositories and add members directly from Anchorpoint. The integration supports GitLab's cloud and self-hosted versions and makes it easy for artists to setup projects without learning a new interface.
Virtual production with crea8.STUDIO
How crea8.STUDIO builds its tools on top of Unreal Engine to help studios, brands and creatives get started with virtual production.