3

我是从 git 开始的初学者。我已经在 github 上创建了我的帐户。我创建了一个新的存储库。但我无法使用终端推送或更新 github 中的更改。我正在运行以下命令:

mkdir ~/TestApplication
cd ~/TestApplication
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin https://github.com/vinayptl/TestApplication.git
git push origin master

当我执行 last commandgit push origin master时,它会冻结一段时间并给出以下错误:

error: Failed connect to github.com:443; Connection timed out while accessing 
https://github.com/vinayptl/TestingApplication.git/info/refs

fatal: HTTP request failed

我在 Linux 平台上工作。可能是什么问题呢?我已经看到了一些来自 SO 的答案,但无法解决这个问题。

4

1 回答 1

2

如果您有代理,ping 不会对您有太大帮助(它无法通过代理 ping)。

您需要设置http_proxyhttps_proxy环境变量。
看:

于 2013-01-08T06:59:47.153 回答