【发布时间】:2013-10-21 00:50:20
【问题描述】:
我创建了一个新的 Git 存储库,但无法使用终端推送它。
这就是我正在做的事情
git remote add origin https://github.com/dilipptt/first_app.git
git push origin master
以及我得到的回报:
错误:无法连接到
github.com:8080;访问https://github.com/dilipptt/first_app.git/info/refs?service=git-receive-pack时连接被拒绝
致命:HTTP 请求失败
【问题讨论】:
-
显示
git remote show origin的输出 -
@EmilDavtyan dilip@linuxmint /media/dilip/New Volume1/rails_projects/first_app $ git remote show origin
error: Failed connect to github.com:8080; Connection refused while accessing https://git@github.com:dilipptt/first_app.git/info/refs?service=git-upload-pack fatal: HTTP request failed -
为什么要连接到 8080 端口?你的
$HOME/.gitrc中有什么东西弄乱了端口号吗? -
也许您正在使用代理并且需要取消设置
https_proxy? stackoverflow.com/a/6080561/694469