Search Unity

Smart Merge for Git Not Working

Discussion in 'Formats & External Tools' started by amccraw, May 28, 2019.

  1. amccraw

    amccraw

    Joined:
    Sep 18, 2018
    Posts:
    1
    I'm having issues getting the Unity merge tool to even run on a project using Git. This project is using Unity 2018.2.11f1, and I followed the instructions in the documentation here and added the .gitconfig file to my project, but when I try
    git mergetool
    , it uses vimdiff, which is the default option. I then tried to set the mergetool using
    git config --local merge.tool <path>
    and when I try
    git mergetool
    again, it gives the error "git config option merge.tool set to unknown tool." I'm pointing it to the path of the included UnityYAMLMerge.exe from my Unity install, but it refuses to recognize it as a valid merge tool, any ideas as to why or ways to fix it?
     
    Last edited: May 28, 2019
    Tom980 and dfranquiz like this.
  2. dfranquiz

    dfranquiz

    Joined:
    Apr 7, 2021
    Posts:
    2
    Did you ever get this working?
     
  3. dfranquiz

    dfranquiz

    Joined:
    Apr 7, 2021
    Posts:
    2
    If you have the .gitconfig at the root of your project use
    git config --local include.path ../.gitconfig
    to reference it in .git/config