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.:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .