SourceTree跳過Atlassian賬號新增
阿新 • • 發佈:2018-12-21
解決辦法
在目錄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
}
]
重新啟動軟體,順利進入介面