SourceTree 安裝以後須要使用帳號登錄以受權,而且是強制登錄。json
登陸過程很是漫長,並未在不FQ的狀況下是不能成功的,下面記錄一下跳過登陸的方法。post
裝以後,轉到用戶本地文件夾下的 SourceTree 目錄,找到accounts.json 文件,沒有則新建。spa
C:\Users\Administrator\AppData\Local\Atlassian\SourceTreecode
輸入如下內容保存便可blog
[ { "$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 } ]
如今再打開 SourceTree,直接顯示主窗口了。it