Edit SourceTree Configurations Without Opening the Application. (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
This article should help Windows users to edit SourceTree configurations without opening SourceTree itself.
Solution
SourceTree users can edit their configurations by editing certain SourceTree back-end files, without opening SourceTree:
#1 Saved configurations that are personalized in the SourceTree app can be found here:
C:\Users\
<username>
\AppData\Local\Atlassian\SourceTree.exe_Url_yjhzxxhcu2ommegrdorjf3q1oqllqxiq\1.6.21.0\user.config
#2 Saved Tabs, Accounts, and Custom Actions that are opened/added in SourceTree are to be found here:
C:\Users\
<username>
\AppData\Local\Atlassian\SourceTree\opentabs.xml
C:\Users\
<username>
\AppData\Local\Atlassian\SourceTree\customactions.xml
C:\Users\
<username>
\AppData\Local\Atlassian\SourceTree\hostedaccounts.xml
C:\Users\
<username>
\AppData\Local\Atlassian\SourceTree\bookmarks.xml
#3 Saved configurations that are repository specific and are added into SourceTree are to be found here:
C:\Users\
<username>
\Documents\new_repository\.git\sourcetreeconfig
Let's say if a user wants to modify a setting, just edit the file, and then reopen SourceTree. SourceTree should now be reconfigured to the settings the user set.
If a user wants to delete saved bookmarks/accounts/tabs, just search for it in the file, and then remove the line that saves it.
If a user would like to revert SourceTree back to its very clean state without any configuration set, user can wipe off all preferences by following this guide:
Was this helpful?