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
- 下一篇: java信息管理系统总结_java实现科