Unity and Visual Studio .gitignore

If you’re using Unity and Visual Studio with a version control system like I am, beware your ignore/exclude file! When I first started my project I decided to simply combine the Unity ignore template and the Visual Studio ignore template. This is a big mistake! The Visual Studio ignore includes a *.meta, which is a very important file in Unity! Here is my resulting gitignore for Unity Visual Studio repositories:

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files

# User-specific files (MonoDevelop/Xamarin Studio)

# Build results

# Visual Studio 2015 cache/options directory

# ReSharper is a .NET coding add-in

# ### Unity ignores ###

# Autogenerated VS/MD solution and project files

# Unity3D generated meta files

# Unity3D Generated File On Crash Reports

One thought on “Unity and Visual Studio .gitignore”

Leave a Reply

Your email address will not be published. Required fields are marked *