SourceTree绕过账号
2018-03-10 本文已影响0人
webjiacheng
首先下载sourcetree,官网上下载比较慢,我是在csdn上下载的,
地址
http://download.csdn.net/download/lsw1991abc/9392073
不用多说安装,然后找到在本地的sourcetree缓存文件,路径一般如下
C :\Users\Administrator\AppData\Local\Atlassian\SourceTree
前方高能(最主要的干货)
新建一个accounts.json
文件(都是建一个.txt文件,然后改后缀),将如下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
}
]