git - 无法连接到 github.com 端口 443 : Operation timed out

标签 git github

git clone https://github.com/RubyLouvre/avalon
Cloning into 'avalon'...
fatal: unable to access 'https://github.com/RubyLouvre/avalon/': Failed to connect to github.com port 443: Operation timed out
我不能使用 HTTPS 来克隆任何 repo,但我可以通过 SSH 克隆它们。
git clone git@github.com:RubyLouvre/avalon.git
Cloning into 'avalon'...
remote: Counting objects: 33102, done.
remote: Compressing objects: 100% (44/44), done.
这有什么问题?我什至设置了代理,但它仍然无法正常工作。我尝试了很多网络环境,但没有任何意义。

最佳答案

如果您使用代理进行网络连接,那么您必须在 git 配置文件中添加代理。使用以下命令添加代理。

git config --global http.proxy http[s]://username:password@proxyipaddress:portnumber

关于git - 无法连接到 github.com 端口 443 : Operation timed out,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38663299/

相关文章:

git merge 裸仓库中的分支

github - 是否可以在 GitHub markdown 中创建工具提示、信息提示或提示?

git - 当分支中已删除的文件与具有该文件的主服务器 merge 时,为什么 Git 不显示 merge 冲突

git - 恢复坏的 git 克隆

django - 防止 Django SQLite 数据库在推送到 Heroku 时被覆盖

python - 使用 Git/PyCharm 维护 Python 项目的精简版和专业版

git - 我应该提交我的 `.idea/` 文件夹吗?

github - 用于从git克隆的构建代码的Docker文件

git - 我可以在下次提交时跳过 git add 命令吗?

git - 如何使 "nohup ./script.sh & disown"在 post-receive git hook 中工作?