Git File System Plugin

The Merge plugin for Git enables Merge to access versions of files located within a local Git repository. It is included as a standard part of the Merge installation.

What you can do with the plugin

The plugin enables Merge to populate the Versions button drop-down versions menu appropriately. For more information, see Comparing Text Files (or Typed/Pasted Text).

The plugin also provides read-only access to revisions of files within a local Git repository. It is not able to access the contents of remote repositories, so it is necessary to create a local clone first.

Preparing Merge to use the plugin

Merge has been tested with Git for Windows. The plugin requires the Git command-line client (git.exe) to be installed and its containing directory present in the Windows system PATH environment variable.

If you wish Merge to populate the Versions button drop-down versions menu with any other revisions of the files that you are comparing, enable the Show file versions from SCM systems setting on the Application options page.

Using the Git plugin

The Git plugin provides access to versions of a working copy of a version-controlled file whose path has been entered within one of the path input fields in a file comparison window. To specify a specific version of a version-controlled file for comparison, use a URI of the form git://X:\Absolute\Path\To\File or git://X:\Absolute\Path\To\File#revision.


URI Description
C:\Users\username\repository\notepad.cpp Specifies the working copy of the file notepad.cpp.
git://C:\Users\username\repository\notepad.cpp Specifies the tip revision of the file notepad.cpp.
git://C:\repo\notepad.cpp#42ab8b0c47 Specifies the revision of notepad.cpp that has the specified hash value.

Accessing files and folders already in your client workspace

If files or folders are already synced in your client workspace, you access them as you would any other file or folder on your hard disk. You do not need to use an git:// URI to do so.

Specifying the location of the Git client

By default, Merge uses your Windows PATH environment to locate Git. Alternatively, an absolute path to the Git command executable can be specified in the Windows Registry as the GITPath string (REG_SZ) value, under the key:


Integrating Merge with the Git command-line tools and graphical front-ends

Merge itself integrates well with Git. For more information, see Integrating with Source Control, Configuration Management, and Other Applications.