Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Windows: the global file is bin\smartgit.vmoptions in SmartGit's installation directory
  • Linux: the global file is bin/smartgit.vmoptions in SmartGit's installation directory
  • Mac: the global file is Contents/MacOS/smartgit.vmoptions in SmartGit's installation directory SmartGit.app

The smartgit.vmoptions file contains a list of additional VM options which should be passed to the Java VM. VM options are basically arguments to Java and every argument must be declared on a separate line.

Panel
titleExample
Code Block
-Xmx2048M
-Xms1024M

Location of the Settings Directory
Anchor
settings-dir.change-location
settings-dir.change-location

...

Used Java Runtime Environment
Anchor
used-jre.change-location
used-jre.change-location

You can check Help|About, page Information to see which Java Version SmartGit is using. Depending on the operating system, you can change the Java VM as follows:

Windows

Use the Windows environment variable SMARTGIT_JAVA_HOME to tell SmartGit which JRE to use. In case of using a 64-Bit JRE, you will have to run SmartGit using bin/smartgit64.exe.

Panel
titleExample

To tell SmartGit to use the 64-Bit Java 8 JRE located at in C:\Program Files\Java\jre8, set the environment variable SMARTGIT_JAVA_HOME=C:\Program Files\Java\jre8.

Note

You have to specify a 64-Bit JRE (starting with SmartGit 18.1). When running bin/smartgit32.exe, you have to specify a 32-Bit JRE.

Linux

On Linux, you can configure the JRE to be used by adding jre=/path/to/jre to smartgit.vmoptions.

...

On Linux and Mac OS X, you can extend the PATH used by SmartGit (and all processes invoked by SmartGit, especially Git itself) by adding path=/additional/path to smartgit.vmoptions. This path= lines can be used multiple times and will be appended to the PATH in the order of occurrence.

Panel
titleExample

To add make the directory file /optusr/local/bin/git-lfs to the PATH accessible without full path specification, add following line to smartgit.vmoptions:

path=/opt/git-lfsusr/local/bin

Warning

Do not specify the file path, but its parent directory's path - as for all usual path modifications!