SourceTree 安裝之后需要使用賬號(hào)登陸以授權(quán),并且是強(qiáng)制登陸。
登錄過(guò)程非常漫長(zhǎng),并未在不FQ的情況下是不能成功的,下面記錄一下跳過(guò)登錄的方法。
裝之后,轉(zhuǎn)到用戶本地文件夾下的 SourceTree 目錄,找到accounts.json 文件,沒(méi)有則新建。
C:UsersAdministratorAppDataLocalAtlassianSourceTree
輸入以下內(nèi)容保存即可
[ { "$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 } ]
重新打開(kāi)再打開(kāi) SourceTree,直接顯示主窗口了。
一般選第一個(gè)就可以了