- 官网下载客户端
- 安装时根据提示下载所需的SDK
- 由于安装时需要登录账号,所以搜索了一下SourceTree跳过Atlassian账号,免登陆,跳过初始设置
- 参考网址:
https://www.cnblogs.com/diyishijian/p/6726792.html
- 用户本地文件夹下的 SourceTree 目录,找到accounts.json 文件,没有则新建。
- C:\Users\Administrator\AppData\Local\Atlassian\SourceTree
- 输入以下内容保存即可
[
{
"$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,直接显示主窗口了。
- 首先要先把自己的git客户端地址导进去,参考目录
D:\软件安装\Git\bin\git.exe
- 若下载的git工作区是用的ssh,则需要设置 SourceTree 的 SSH客户端
- 配置SourceTree 的 SSH 客户的为:OpenSSH ; 工具->选项->ssh客户端改为OpenSSH
- 完成,可以愉快的开始工作了