SourceTree 跳过登陆

当前只有Win的版本,Mac自行百度(笑)

很多人用git命令行不熟练,那么可以尝试使用sourcetree进行操作。

然鹅~~sourcetree又一个比较严肃的问题就是,很多人不会跳过注册或者操作注册。

废话不多,我们直接开始跳过注册阶段的操作。

下载好之后会有这么一个界面要求你注册或登录。(不管它)将下面的一串串放进我的电脑的地址栏,打开sourcetree的文件夹

%LocalAppData%\Atlassian\SourceTree
accounts.json
通常长这样

对,没错,你会看到一个很不和谐的文件account.json你是没有的
恩,就是它,所以接下来你应该在当前文件夹下创建一个json文件,文件名为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,恩,哒哒哒~~

和之前不一样的界面,无需注册,一秒999级,我系渣渣辉,你没有玩过的全新版本,贪玩南粤????画风好像变得很奇特的样子。。。

咳咳,,就是这样,sourcetree已经跳过注册环节了。

posted @ 2018-05-17 13:08  飞天龙猫  阅读(192)  评论(0编辑  收藏  举报