Windows
1.打开资源管理器, 将下面的代码复制到地址栏,打开sourcetree的文件夹
%LocalAppData%\Atlassian\SourceTree\
2.在该文件夹下创建一个json文件,文件名为accounts.json, 复制下面的代码到 json 文件中:
[
{
"$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
}
]
Mac
命令终端输入defaults write com.torusknot.SourceTreeNotMAS completedWelcomeWizardVersion 3