Disabling Git or Mercurial Support in SourceTree for Windows

Still need help?

The Atlassian Community is here for you.

Ask the community

Purpose

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

  1. Locate the user.config file for SourceTree. 
    For example  
    C:\Users\yourUser\AppData\Local\Atlassian\SourceTree.exe_Url_{hash}\{version}\user.config
     
  2. Locate the appropriate section in the user.cofng file and edit depending on which product you want to disable:

    FOR GIT:FOR MERCURIAL
    <?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

     

    <?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

 

 





Last modified on Feb 19, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.