Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 Zerroth · Aug 15, 2016 at 07:05 PM · mergeconflict

Merge Conflicts - Bitbucket, Sourcetree. How do I get around this?

Have been working on a project in Unity with a friend and the friend created his own branch called Danny'sBranch.

Changes were made in the Master's branch while Danny worked on Danny's branch. I tried to merge the branches. The Unity project itself seems to have stuff from both branches but there are a lot of errors.

The errors from sourcetree are the following:

git -c diff.mnemonicprefix=false -c core.quotepath=false merge origin/DannysBranch Auto-merging marble-action-now.userprefs CONFLICT (content): Merge conflict in marble-action-now.userprefs Auto-merging Library/metadata/92/92e6676b2a6c31945a7cf6b6ac40ca57 CONFLICT (content): Merge conflict in Library/metadata/92/92e6676b2a6c31945a7cf6b6ac40ca57 Removing Assets/TARGET.obj.meta Auto-merging Assets/Scripts/GameManager.cs CONFLICT (content): Merge conflict in Assets/Scripts/GameManager.cs Auto-merging Assets/Scenes/Scene1.unity CONFLICT (content): Merge conflict in Assets/Scenes/Scene1.unity Auto-merging Assets/Prefabs/PC 1.prefab CONFLICT (content): Merge conflict in Assets/Prefabs/PC 1.prefab Auto-merging Assembly-CSharp.csproj Automatic merge failed; fix conflicts and then commit the result. warning: Cannot merge binary files: Library/metadata/92/92e6676b2a6c31945a7cf6b6ac40ca57 (HEAD vs. origin/DannysBranch) warning: Cannot merge binary files: Assets/Scenes/Scene1.unity (HEAD vs. origin/DannysBranch) warning: Cannot merge binary files: Assets/Prefabs/PC 1.prefab (HEAD vs. origin/DannysBranch)

The main question would be, what should we do to fix this problem?

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by MrMatthias · Jan 03, 2019 at 01:22 PM

You need to setup your project for version control. Read: https://docs.unity3d.com/Manual/VersionControl.html The important parts are Asset Serialization set to "force text", Version Control mode set to "Visible meta files" and Smart Merge. You find more on Smart merge and conflicts here: https://support.unity3d.com/hc/en-us/articles/207332543-What-are-the-solutions-to-scene-prefab-conflict-merging- There still might be conflicts though that you have to merge manually. To do this you have to know the YAML Format: https://docs.unity3d.com/Manual/TextSceneFormat.html Don't check in Library files, you can simply setup a git ignore file to ignore this and other folders: https://github.com/github/gitignore/blob/master/Unity.gitignore

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How to properly merge two projects, when one of them was derived from the other, which results in several conflicting assets? 0 Answers

Merging 2 AndroidManifest.xml's 1 Answer

Merging 2 Textures Into 1 1 Answer

solve merge conflict in unity collab 1 Answer

When I merge 2 objects it spawns 2 objects 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