windows7:
sourcetree 2.4.7:
1.下载
在官网下载或者 链接: https://pan.baidu.com/s/1frVx8RAPpleUS2lOpNdSsw 密码: 8p75
2.免注册安装
本部分参考文档:http://www.cnblogs.com/xiofee/p/sourcetree_pass_initialization_setup.html
sourcetree正常情况下安装会要求注册:
但是很多时候注册页面打不开或者网速极慢,所以打开C:\Users\Administrator\AppData\Local\Atlassian\SourceTree
添加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
}
]
保存为accounts.json,注意,此处文件必须为json文件格式,txt格式是不可以的。
然后重启sourcetree进行安装,即可跳过注册程序,安装完成
3.配置端口号及用户信息并添加公钥到gitlab
具体操作参考:https://www.jianshu.com/p/91c00383eefe
4.修改协议
选择工具-->选项