Problem Description
After installing SourceTree, when you use it for the first time, you need to log in through your account, but the registration or login interface may not be able to open at all, resulting in the inability to enter the software
Solution
C:\Users\{youruser}\AppData\Local\Atlassian\SourceTree
Create a file in the directory accounts.json
, note: {youruser} needs to be replaced with the login system user name.
Write the following:
[ { "$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 protected]" }, "IsDefault": false } ]Restart the software and enter the interface smoothly