Set up Git

To set up Git, go to Preferences > Version Control > General.

Git tab in Version Control preferences

Git tab in Version Control preferences

You can set the following preferences:

  • When the Git executable is not in the PATH variable, specify the full path to the executable in Git command.
  • Alternatively, add the folder containing the Git executable to Prepend to PATH.
  • In Windows, Git needs to know the HOME directory for its own settings and for SSH to find the keys. If the HOME directory is not correctly set, select Set HOME environment variable to set it. For more information, see Use Git for Windows.
  • To limit the entries in the git log, change Log count.
  • To avoid that Git commands run forever (for example on network problems), set Timeout.
  • To rebase local commits instead of merging them during git pull, select Pull with rebase.
  • To allow rebasing merges during Interactive rebase, select Allow rebasing merges. This is an advanced option and requires Git version 2.18 or later.
  • To allow updating references during Interactive rebase, select Allow updating references. This is an advanced option and requires Git version 2.38 or later.
  • To specify additional arguments when running Gitk, add them to Gitk > Arguments.
  • To use another application for viewing Git history, such as GitX or QGit, specify the path to the executable in Repository Browser > Command. See Other repository browsers for more information.
  • For the Instant Blame settings, see Show instant blame.

See also How to: Use Git and Using Git.