下載安裝就略過了
安裝完成后都會進入到這個界面
復(fù)制下面這行
%LocalAppData%\Atlassian\SourceTree
打開資源管理器 Win+E 粘貼 回車 進入到SourceTree 目錄
然后新建文檔 重命名 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
}
]
復(fù)制上面的代碼 沾到剛才新建的文本中 保存
然后 重啟sourcetree