GitHub“无法连接到github”没有错误 [英] GitHub "Failed connect to github" No Error

查看:110
本文介绍了GitHub“无法连接到github”没有错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Git相当陌生,但我一直在使用GitBash进行提交,现在推送并拉动一两个星期。所有工作都很好,但是一两天前,当我尝试与远程存储库进行交互时,我开始出现错误。



致命:无法访问'....':无法连接到github.com:443;没有错误



我做了一些Google搜索并且遇到了类似的StackOverflow帖子和文章。从那以后,我尝试了很多东西,包括跨不同端口(22和443)测试SSH连接。它看起来像端口443(用于HTTPS连接)被阻止,而端口22似乎是打开的。



从我所了解的情况来看,我认为我可能需要更改port Git我试过改变〜/ .git / config 文件,我尝试了 git remote set-url



有关原始错误或如何更改我的Git端口的任何信息将会是非常感谢。

解决方案

通过HTTP使用git的任何原因?

  git clone git@github.com:GreenValley / GitHubSandbox.git 


I'm pretty new to Git, but I've been using GitBash for commits, pushing and pulling for a week or two now. All was working fine, but a day or two ago when I started getting an error everytime I tried to interact with the remote repositories.

fatal: unable to access '....': Failed connect to github.com:443; No error

I've done some Googling and come across similar StackOverflow posts and articles. From that, I've tried a number of things, including testing the SSH connection across different ports (22 and 443). It looks like port 443 (for HTTPS connections) is blocked, while port 22 seems to be open.

From what I understand of this, it looks to me like I might need to change the port Git is using from 443 to 22. I've tried changing the ~/.git/config file and I've tried the git remote set-url command to try to do this, but with no joy.

Any information on the original error or on how to change my Git port will be greatly appreciated.

解决方案

Any reason why you use git via HTTP? I'd suggest using SSH instead.

git clone git@github.com:GreenValley/GitHubSandbox.git

这篇关于GitHub“无法连接到github”没有错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆