- Home /
Question by
Shuttle099 · Nov 03, 2013 at 07:03 PM ·
git
What to exclude while using Unity3d with Git?
I looked over the internet and all the websites say to exclude different things. What should I exclude in the .gitignore?
Comment
Best Answer
Answer by Brian@Artific · Nov 03, 2013 at 08:48 PM
Here's our standard .gitignore file:
# Ignore the contributor's local assets folder, subfolders, and files
ProjectName/Assets/~Local/*
ProjectName/Assets/~Local/**/*
ProjectName/Assets/~Local.meta
# Ignore Library files
ProjectName/Library/*
ProjectName/Library/**/*
# Ignore local build files
ProjectName/obj/*
ProjectName/obj/**/*
ProjectName/Temp/*
ProjectName/Temp/**/*
# Ignore local project files
ProjectName/*.csproj
ProjectName/*.pidb
ProjectName/*.sln
ProjectName/*.suo
ProjectName/*.unityproj
ProjectName/*.userprefs
The ~Local folder is used by our team for changes that we're not ready to check in and is optional. All of the others can be rebuilt from the files in the Assets and ProjectSettings folders (assuming, of course, that .meta files are turned on).
Your answer
![](https://koobas.hobune.stream/wayback/20220613121155im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Cloud recognition in Vuforia 0 Answers
Git and .scene/.prefab 2 Answers
OnSerializeNetworkView doesnt seem to be needed?? 0 Answers
[Solved] Generating Particles with Attack Animation 1 Answer
Ingame Building Menu? 0 Answers