I know that you can define the preferred editor by setting the EDITOR environment variable.

My question is if there is a similar solution for setting the preferred merge or diff tool.

  • 2
    For git, it uses the merge.tool configuration assignment.
    – jordanm
    Nov 19, 2012 at 22:30

1 Answer 1


As far as I know, there isn't any universal way; it depends on which version control system you are using, e.g.:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.