GitHub - HTTPS 访问 [英] GitHub - HTTPS access

查看:30
本文介绍了GitHub - HTTPS 访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法通过 HTTPS 克隆我的存储库:

I am unable to clone my repository via HTTPS:

$ git clone https://github.com/walterjwhite/project.configuration.git
Initialized empty Git repository in ./project.configuration/.git/
error: Failed connect to github.com:443; Connection refused while accessing https://github.com/walterjwhite/project.configuration.git/info/refs
fatal: HTTP request failed

我已经用我的登录名和密码以及我要连接的机器或服务器配置了 .netrc.

I have configured .netrc with my login and password as well as the machine or server I am connecting to.

推荐答案

正如您在 GitHub 支持Scott Schacon 自己建议:

As you did saw yourself in GitHub support, Scott Schacon himself suggested:

所以我猜你的 .netrc 不正确还是什么?
尝试从 .netrc 中删除信息并先克隆(因为它是公共存储库).

So I guess your .netrc is incorrect or something?
Try removing the info from your .netrc and cloning first (since it's a public repo).

如果不是 GitHub 服务器问题,则可能是您的防火墙.
和/或您的代理(git config --global http.proxy http://user:password@proxy:xxx).

If it isn't a GitHub server issue, it could be your firewall.
And/or your proxy (git config --global http.proxy http://user:password@proxy:xxx).

这篇关于GitHub - HTTPS 访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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