Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
0
Question by SamElTerrible · Sep 02, 2016 at 02:45 PM · source-control

Do you need to close Unity to stage files in SourceTree?

I've noticed that when I try staging while Unity is still open, there are a bunch of files that make the staging process very slow. If I close unity, a lot of the previous files are gone, which makes the staging a lot faster. Do I need to stage the files that disappear when I close Unity? or should I just keep closing Unity every time I want to commit some changes?

Thanks!

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

2 Replies

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

Answer by Nerull22 · Sep 02, 2016 at 03:01 PM

It sounds like you're trying to source control some files that you do not need to. I have used SourceTree in the past with Unity and have not had a problem with staging while Unity remains open. If you have files appearing and disappearing when you open and close Unity it sounds like you're not ignoring the temp folder. The temp folder does not need to be in your source control and honestly shouldn't be in your source control. Below is a site that I use for generating .gitignore files from time to time.

https://www.gitignore.io/

If you enter in what tools you're using it will generate a .gitignore file for you. It's not always super great if you're adding multiple tool sets, but you should be fine with just the Unity one. Just Unity .gitignore file is listed below. Stage and commit the .gitignore file and those appearing and disappearing files should not be present anymore.

https://www.gitignore.io/api/unity

If this didn't help, let us know so we can try to narrow down the problem.

Comment
Add comment · Show 1 · 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 SamElTerrible · Sep 03, 2016 at 02:50 PM 0
Share

Worked like a charm, thanks a lot! Its probably worth to mention that for the gitignore file to work you need to go to Edit--> project settings--> editor and change the version control mode to "visible meta files" and the asset serialization mode to "Force text".

Thanks again!

avatar image
0

Answer by guneyozsan · Feb 18, 2017 at 03:23 AM

Yes you need to close Unity. The Unity lock file will also prevent you from commiting while it is open.

For Unity 5, you can safely ignore "Library" and "Temp" folders.

Comment
Add comment · 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

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How does Unity-free source control go wrong 3 Answers

How to use Visual Studios with Git source control? 0 Answers

How to Merge Scene with Asset Server 0 Answers

Locking entire scene to prevent from editing 0 Answers

Can not build project only using Assets and ProjectSettings folders 1 Answer


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