1. Enter directly in the directory bar of the computer: %LocalAppData%\Atlassian\SourceTree\
Just press Enter to jump to the specified directory of SourceTree.
2. Create a new accounts.json file and place it directly in the newly opened root directory.
The json content is as follows:
[ { "$id": "1", "$type": "SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity", "Authenticate": true, "HostInstance": { "$id": "2", "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountInstance, SourceTree.Host.AtlassianAccount", "Host": { "$id": "3", "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountHost, SourceTree.Host.AtlassianAccount", "Id": "atlassian account" }, "BaseUrl": "https://id.atlassian.com/" }, "Credentials": { "$id": "4", "$type": "SourceTree.Model.BasicAuthCredentials, SourceTree.Api.Account", "Username": "", "Email":null }, "IsDefault": false } ]
3. Re-open SourceTree, you can enter the main window.