Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
2
Question by _Shockwave · Jan 27, 2013 at 08:08 AM · unity4gitgithubmetadata

Ignoring Library/metadata with Unity4/Github/Win8x64

I have been trying to resolve my problem with .gitignore file. I'm using git as my repository with Unity 4. I have done every possible combination trying to ignore Library/ files and folders but didn't work.

I have been trying to solve this for 4 months now and I have visited every other question related to this but no luck. Here's a screenshot to show you what I mean:

alt text

Full resolution sceenshot link

As you can see from the screenshot, I have done every possible combination I can think of to get rid of the stupid folder but no luck T_T.

My Unity (4.0.0.f7) is closed when I'm trying to commit/push. I'm using the Github windows application (1.0.33.2). I'm only having trouble with the Library folder/files and .sln,.csproj files. All the other ignores work fine.

This is causing us to wait about 15-20 minutes every time we open unity after pushing something to the master because we don't commit those files. However, if we commit these files, then Unity starts much faster.

Please help!

Comment
Add comment · Show 2
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
avatar image XaeroDegreaz · Feb 25, 2013 at 08:03 PM 0
Share

I know this is a bit late, but have you tried using Git UniTEA$$anonymous$$ from the asset store? It's an editor extension that lets you manage your Git versioned project.

avatar image _Shockwave · Mar 03, 2013 at 03:21 AM 0
Share

Nope, I haven't. I started using the command line after the Github GUI started failing. However, thanks for the suggestion, I'll check it out :).

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by davvilla · Jan 29, 2013 at 09:52 PM

Hey,

Have you commited these files before or do you always remove them from the commit? If you have commited them before you need to remove them from the repo by doing:

 git rm --cached

gitignore after commit

.gitignore file not ignoring

Alternatively, you could just not use "git add ." and add only the folders/files you want to commit manually each commit by doing "git add path/to/file" for each file or folder you want to add.

I hope this helps

Comment
Add comment · Show 2 · Share
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
avatar image _Shockwave · Jan 30, 2013 at 10:06 AM 0
Share

Yes, I have committed those files before. I will try the suggested methods. Thank you very much. I'll update if it works .. EDIT: I have used the 2nd link and it fixed my issue. Thanks!

avatar image Baintastic · Jul 17, 2015 at 03:51 PM 0
Share

the second link worked for me as well

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.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity Git - Ignore Library 2 Answers

Monodevelop can't open files from project in github repo 2 Answers

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

Issues with git and PhotonLoadBalancingApi 1 Answer

Unity Version Control - missing scene files and materials when downloading or cloning. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges