sourcetree教程(去掉註冊賬號)
阿新 • • 發佈:2018-11-21
在開啟sourcetree的時候,我們會出現讓我們去申請賬戶的情況,如下:
我們可以去掉這一步直接跳過,需在C:\Users\AppData\Local\Atlassian\SourceTree目錄下新增一個accounts.json檔案,accounts.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
}
]
開啟即可跳過註冊賬戶流程