Sourcetree after installation need to use account login to authorize, previously can not login, but now need to force login.
Although it is free license, but encounter force majeure factors, landing is not very convenient, so we need to think of some ways to solve the problem of login, before you can use Sourcetree.
Once installed, go to the Sourcetree directory under the user's local folder (no new)
%localappdata%\atlassian\sourcetree\
Second, the new Accounts.json file
%localappdata%\atlassian\sourcetree\accounts.json
Third, enter the following content to save
[
{
"$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
}
]
Four, now open sourcetree, direct access