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.
Works in GitTree Free: every local Git feature, once you are signed in.
On this page
Before you start
- The editor or tool you want is installed.
Where to find it
- Preferences › External Tools.
| Action | macOS | Windows and Linux |
|---|---|---|
| Preferences | ⌘, | Ctrl+, |
Steps
Open External Tools
Open Preferences and select External Tools.
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.toolis used.Or give your own program
Choose Custom…, enter the full path of the program and its arguments, for example
--diff {local} {remote}.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
| Tool | Example 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.