- First, run it once
SourceTree
after , pop up the initialization login page, and then exit. - Open
我的电脑
, directly enter the following address in the address bar at the top:
%LocalAppData%\Atlassian\SourceTree\
As shown in the figure:
- Create a new file named
accounts.json
in . 文本文档
Open this file with, copy the following content into it and save it.
[
{
"$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
}
]
- Open
SourceTree
it skip the login and enter the software page directly.