



Run the command: git config -add '/Applications/Unity/Hub/Editor//Unity.app/Contents/Tools/UnityYAMLMerge merge -p "$BASE" "$REMOTE" "$LOCAL" "$MERGED"' Run the command: git config -add merge.tool unityyamlmerge Open your terminal and navigate to the git repository of your project. Unity has a tool that will help you resolve these conflicts but you need to setup git to work with that tool. Sometimes you will get merge conflicts on. If two people need to work on the same parts of the project at the same time then have a chat window open and keep communicating about what you’re editing and why. I’m in charge of materials and you are in charge of enemy prefabs etc.Assign tasks to group members so you are less likely to edit the same files.If you starting working without getting the latest changes, there is a very good chance your work will be in conflict (this is true with non-Unity development as well). A small merge conflict is better than a large one.ĭO NOT JUST SIT DOWN AND START WORKING. Committingĭo not go silent and work for an entire day and then try to commit and push. Using prefabs will be helpful when using Git and reduce the number of merge conflicts as the prefabs can be used across scenes, and still modified individually when necessary. If you are creating assets for your project by assembling environmental elements or characters using the Unity provided shapes make sure to create a prefab. Having the same version of Unity will make it easier as the project won’t require “conversion” on anyone’s development computer. The latest long term support version (LTS) is 2020.3.22f1 as of writing this guide. Make sure every memeber of your team is using the SAME version of Unity.
#P4MERGE AS MERGETOOL GIT CODE#
Home Schedule Presentations Code Demos Guides Links Working with Unity in a Group Unity Version
