安装
1.到官网下载最新版:https://www.sourcetreeapp.com;
2.安装完成打开后需要登录,但注册或登录界面无法打开,关闭软件进行第3步;
3.在目录C:\Users\Administrator\AppData\Local\Atlassian\SourceTree 下创建一个文件accounts.json;
4.将下列代码复制,粘贴进accounts.json;
5.重新打开软件就可以使用了。
[
{
"$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": "username@email.com"
},
"IsDefault": false
}
]
配置SSH
1.生成SSH,这里就不详细说了,自己百度;
2.打开sourceTree菜单栏:工具==>创建或导入SSH密钥
3.选择自己生成的私匙,然后保存为PPK格式的文件,注意:点Load后一定要选 All Files 再选择私匙
4.打开sourceTree菜单栏:工具==>选项==>一般,选择之前生成的PPK文件,点确定就行了
使用
使用都很简单了,UI图形化操作