• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by NlaakStudios · Mar 17, 2017 at 02:41 AM · unity 5git

Single .gitignore for parent folder with multiple unity projects

Ok, Unity .gitignore pertaining to multiple projects in separate folders, but in the same parent folder. I have a git repository that has 4 related projects. 2 are Unity projects, 1 is Silex PHP and the last is Swagger files. I keep getting Library, Temp and other unwanted files for check-in. I have this from various different sources around the net but it is not working as well. Any help would be appreciated.

 # Ignore everything in the root
 /*
 # Except for these:
 !/.gitattributes
 !/.gitignore
 !/.gitmodules
 !/ILUF_Client
 !/ILUF_Common
 !/ILUF_Server
 !/ILUF_Swagger
 
 # And these for any level:
 ![Aa]ssets]/
 ![Pp]rojectSettings/
 !README.md
 !README.md.meta
 
 #but, ignore these for all levels:
 [Ll]ibrary/
 [Tt]emp/
 [Oo]bj/
 [Bb]uild/
 [Bb]uilds/
 Assets/AssetStoreTools*
 
 # Visual Studio 2015 cache directory
 /.vs/
 
 # Autogenerated VS/MD/Consulo solution and project files
 ExportedObj/
 .consulo/
 *.csproj
 *.unityproj
 *.sln
 *.suo
 *.tmp
 *.user
 *.userprefs
 *.pidb
 *.booproj
 *.svd
 *.pdb
 
 # Unity3D generated meta files
 *.pidb.meta
 
 # Unity3D Generated File On Crash Reports
 sysinfo.txt
 
 # Builds
 *.apk
 *.unitypackage
  
 # ============ #
 # OS generated #
 # ============ #
 .DS_Store*
 ._*
 .Spotlight-V100
 .Trashes
 ehthumbs.db
 [Tt]humbs.db
 [Dd]esktop.ini


What am I missing here?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

.gitignore not ignoring Library. What's the correct way to do it? 1 Answer

Unity taking a SEVERAL OF MINUTES importing .ma and .mb files 0 Answers

Unity Git - Ignore Library 2 Answers

SourceTree Hangs (not responding) with Unity Large Project 0 Answers

Visible or hidden meta files with Git? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges