欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 运维知识 > windows >内容正文

windows

Windows10避开注册的方式安装sourceTree,Failed to connect to github.com port 443: Timed out问题解决

发布时间:2024/9/27 windows 60 豆豆
生活随笔 收集整理的这篇文章主要介绍了 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”,然后会提示注册一个账号。此时,关闭此安装过程,然后在地址栏上输入以下路径:

%LocalAppData%\Atlassian\SourceTree\

如果下所示

然后再在里面创建一个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> 的里面增加:

<setting name="AgreedToEULA" serializeAs="String"> <value>True</value> </setting> <setting name="AgreedToEULAVersion" serializeAs="String"><value>20160201</value> </setting>

然后再点击”SourceTreeSetup-3.1.3.exe”进行安装。接着会进入以下过程:

最终安装成功

1.1.3 修改sourceTree中的高级配置


点击其中的编辑,编辑内容如下:

.project .classpath .settings/ target/ logs/ output/ .factorypath.idea *.iml

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问题解决的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。