問題描述
安裝好SourceTree後,首次使用時,需要通過賬戶登入,但注冊或登入界面可能根本無法打開,導緻無法進入軟體

解決辦法
在目錄
C:\Users\{youruser}\AppData\Local\Atlassian\SourceTree
下建立檔案
accounts.json
,注意:{youruser}需要替換為登入系統使用者名。
寫入如下内容:
[
{
"$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
}
]
重新啟動軟體,順利進入界面