Skip to content

Instantly share code, notes, and snippets.

@wwvuillemot
Created August 14, 2014 18:21
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save wwvuillemot/8e9fb085e7626a3f6b38 to your computer and use it in GitHub Desktop.
Save wwvuillemot/8e9fb085e7626a3f6b38 to your computer and use it in GitHub Desktop.
Unity GIT Ignore
# =============== #
# Unity generated #
# =============== #
# temporary files that you do not want to share with other users
Temp/
Obj/
UnityGenerated/
Library/
# optional, but you likely do not want to store
# your builds in your git repo due to size
Build/
# ===================================== #
# Visual Studio / MonoDevelop generated #
# ===================================== #
# these are generated by Mono itself are specific to the user and machine
# sharing these with others in your repo will lead to issues
ExportedObj/
*.svd
*.userprefs
*.csproj
*.pidb
*.suo
*.sln
*.user
*.unityproj
*.booproj
# ============ #
# OS generated #
# ============ #
# Mac OS X
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db

Unity GIT Ignore file

ABOUT

Adding the .gitignore file to your git repository for a Unity project will help avoid some of pitfalls and issues, especially if you have two or more developers working on the project.

HOW TO USE

  1. Copy this to the root of your git project, and name .gitignore
  2. Follow the instructions at Support for External Version Control to set your Unity Editor to use git as an external version control system.
  3. Enjoy!

QUESTIONS?

If you have questions, feel free to contact me, Ward (Unity Product Manager).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment