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软件,就可以使用了。