sourceTree是一個很方便的git管理工具,但是現在一直無法注冊,本文記錄了跳過注冊的方法。
將下面的代碼賦值到地址欄
%LocalAppData%\Atlassian\SourceTree\
進入到sourceTree的安裝目錄
創建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 } ]
然后打開安裝好的sourcetree軟件,就可以使用了。