Skip to content
GitTree
Files and tools

Configure external tools

Preferences › External Tools chooses the Editor, Diff tool and Merge tool GitTree opens from file menus and the conflict view. Automatic uses the first installed of Visual Studio Code, Cursor and Antigravity; Custom… runs any program with the arguments you give.

FreeUpdated

Works in GitTree Free: every local Git feature, once you are signed in.

On this page
  1. Before you start
  2. Where to find it
  3. Steps
  4. Expected result
  5. Arguments for custom tools
  6. If something goes wrong
  7. Questions
  8. Related

Before you start

  • The editor or tool you want is installed.

Where to find it

  • Preferences › External Tools.
ActionmacOSWindows and Linux
Preferences⌘,Ctrl+,

Steps

  1. Open External Tools

    Open Preferences and select External Tools.

  2. Choose each tool

    Pick an Editor, a Diff tool and a Merge tool from the lists. With no merge tool chosen, git’s own merge.tool is used.

  3. Or give your own program

    Choose Custom…, enter the full path of the program and its arguments, for example --diff {local} {remote}.

  4. Try it on a file

    Right-click a changed file: Open in External Editor or Open in External Diff Tool. In a conflict, Open in Merge Tool. GitTree says Opened in and the tool’s name.

Expected result

Files, diffs and conflicts open in the tools you chose.

Arguments for custom tools

Placeholders GitTree fills in
ToolExample arguments
Editor--goto {file}:{line}
Diff tool--diff {local} {remote}
Merge tool{local} {base} {remote} -o {merged}

If something goes wrong

Nothing opens with Automatic

None of Visual Studio Code, Cursor or Antigravity was found. Choose your tool by name, or Custom… with its full path.

Questions

Does GitTree change my git config for this?

No. These choices are GitTree preferences; git’s diff.tool and merge.tool stay as they are.