source tree是協助我們使用git的時候的一個GUI工具,安裝的時候一直提示注冊,但是因為網絡問題,無法翻牆登錄,下面提供免注冊的方法。
1.訪問安裝路徑:%LocalAppData%\Atlassian\SourceTree\
2.新建文件 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 } ]
3.重啟即可
參考資料:https://www.cnblogs.com/lucio110/p/8192792.html