Windows10避开注册的方式安装sourceTree,Failed to connect to github.com port 443: Timed out问题解决
1.1.Windows10避开注册的方式下安装sourceTree
1.1.1.第一步
下载SourceTree,下载地址:https://product-downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-3.1.3.exe
若上面的地址无效了,可以访问:链接: https://pan.baidu.com/s/1MIqyqEdm77ZGOGn19ZrFkw 提取码: 6d56
1.1.2.第二步
接下来就是安装了SourceTree了。
点击”SourceTreeSetup-3.1.3.exe”,然后会提示注册一个账号。此时,关闭此安装过程,然后在地址栏上输入以下路径:
如果下所示
然后再在里面创建一个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} ]进入AppData\Local\Atlassian\SourceTree的上一层,分别配置:
SourceTree.exe_Url_5yoa13qlgvkvzlqygk4igfht1zisrb4w\3.1.3.3158\user.config在 <SourceTree.Properties.Settings> 的里面增加:
<setting name="AgreedToEULA" serializeAs="String"> <value>True</value> </setting> <setting name="AgreedToEULAVersion" serializeAs="String"><value>20160201</value> </setting>SourceTree.exe_Url_gndlaoeh2iwzbvhp3dmwn4vu2enmze4e
在 <SourceTree.Properties.Settings> 的里面增加:
然后再点击”SourceTreeSetup-3.1.3.exe”进行安装。接着会进入以下过程:
最终安装成功
1.1.3 修改sourceTree中的高级配置
点击其中的编辑,编辑内容如下:
1.1.4 Failed to connect to github.com port 443: Timed out问题解决
fatal: unable to access ‘https://github.com/xxxxx/xxxx.git/’: Failed to connect to github.com port 443: Timed out
今天使用git push的时候提示"fatal: unable to access ‘https://github.com/xxxxx/xxxx.git/’: Failed to connect to github.com port 443: Timed out"
然后我输入了下面的这些命令:
git config --global http.proxy
查询到当前设置了代理,所以我取消这个设置:
git config --global --unset http.proxy
再查询,已经没有了代理,然后再push,成功了!
然后就可以继续push了。
总结
以上是生活随笔为你收集整理的Windows10避开注册的方式安装sourceTree,Failed to connect to github.com port 443: Timed out问题解决的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: HDFS权限设置 \ HDFS涉及ACL
- 下一篇: Knox网关、网关简介、概述、支持的Ap