近期新进一家公司,所有的开发工具都需要重新安装,这边我用到了可视化管理版本文件的工具sourceTree,但他的安装是需要注册的,以下告诉你们如何跳过注册。
1、首先去官网下载sourceTree:https://www.sourcetreeapp.com/
2、接下来就是安装了,安装好以后,点击运行,会出现以下界面:
在这里插入图片描述
这个时候,你先不管,直接在本地地址栏输入以下路径:
*%LocalAppData%\Atlassian\SourceTree*
则进入到以下目录
在这里插入图片描述
这个时候你可能发现你的目录会和我的不一样,我的目录下面会多了一个accounts.json,所以跳过注册accounts.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,此时就没有注册界面了,
会弹出以下界面:你可以根据自己的情况选择,我这边选择了最后一项
在这里插入图片描述
好了这边sourceTree跳过注册已经成功了,大家一起试试吧!