Disabling Git or Mercurial Support in SourceTree for Windows
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Some customers may require that support for Git or Mercurial be disabled for SourceTree under Windows.
This can be done by modifying the user.config configuration file.
Solution
Locate the user.config file for SourceTree.
For example
C:\Users\yourUser\AppData\Local\Atlassian\SourceTree.exe_Url_{hash}\{version}\user.config
Locate the appropriate section in the user.cofng file and edit depending on which product you want to disable:
FOR GIT
1 2 3 4 5 6 7 8 9 10 11 12
<?xml version="1.0" encoding="utf-8"?> <configuration> <userSettings> <SourceTree.Properties.Settings> ... <setting name="EnableGitSupport" serializeAs="String"> <value>False</value> </setting> ... </SourceTree.Properties.Settings> </userSettings> </configuration>
Git support can be re-instated by setting this property to true or in the
SourceTree UI via the Tools/Options/Git/Enable Git option
FOR MERCURIAL
1 2 3 4 5 6 7 8 9 10 11 12
<?xml version="1.0" encoding="utf-8"?> <configuration> <userSettings> <SourceTree.Properties.Settings> ... <setting name="EnableHgSupport" serializeAs="String"> <value>False</value> </setting> ... </SourceTree.Properties.Settings> </userSettings> </configuration>
Mercurial support can be re-instated by setting this property to true or in
the SourceTree UI via the Tools/Options/Mercurial/Enable Mercurial option
Was this helpful?