Published on

.gitignore file for Unity project

  • Evelyn
    Full-time IndieDev.
    I'm Japanese, so please forgive me if my English is strange.

Please share this article if you like!

When you try to manage your Unity project with Git, do you forget what you need to set in the .gitignore file every time?

In fact, I forget and search for it every time.

In this article, I will share the contents of the .gitignore file for Unity Project for you.

Table of Contents

Contents of the .gitignore file

Here's the contents of the .gitignore file.

Please copy and paste to use.


# Unity generated

# Never ignore Asset meta data

# Uncomment this line if you wish to ignore the asset store tools plugin
# [Aa]ssets/AssetStoreTools*

# Visual Studio cache directory

# Gradle cache directory

# Autogenerated VS/MD/Consulo solution and project files

# Unity3D generated meta files

# Unity3D generated file on crash reports

# Builds

# Crashlytics generated file

# OS generated

I recommend an asset called Github for Unity

If you want to use a GUI to manage git in your Unity project, please use Github for Unity.

Summary of this article

What did you think?

In this article, I introduced the contents of the .gitignore file for Unity projects, which is often forgotten.

I hope this will help you accelerate your game development.

Please share this article if you like!