- Published on
.gitignore file for Unity project
- Authors
- EvelynFull-time IndieDev.I'm Japanese, so please forgive me if my English is strange.
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.
.gitignore
# Unity generated
[Ll]ibrary/
[Tt]emp/
[Oo]bj/
[Bb]uild/
[Bb]uilds/
[Ll]ogs/
# Never ignore Asset meta data
![Aa]ssets/**/*.meta
# Uncomment this line if you wish to ignore the asset store tools plugin
# [Aa]ssets/AssetStoreTools*
# Visual Studio cache directory
.vs/
# Gradle cache directory
.gradle/
# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb
*.mdb
*.opendb
*.VC.db
# Unity3D generated meta files
*.pidb.meta
*.pdb.meta
*.mdb.meta
# Unity3D generated file on crash reports
sysinfo.txt
# Builds
*.apk
*.unitypackage
# Crashlytics generated file
crashlytics-build.properties
# OS generated
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db
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.