声明:以下步骤全来源于网络,自己实践可行之后,做个记录
步骤
1.下载安装包
2.打开
%LocalAppData%\Atlassian\SourceTree\
如图:
3. 添加"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
}
]
4.点击下载包安装,直接到sourceTree使用页面
附:其实sourceTree本身就是免费的,只是需要注册BitBucket账号即可。