Disabling Git or Mercurial Support in SourceTree for Windows
目的
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.
ソリューション
- 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: 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
最終更新日: 2016 年 2 月 19 日
Powered by Confluence and Scroll Viewport.