公司內網加域,想要clone github上的項目一直報443,
需要配置代理。查到一個帖子的情況和我一致,ctrl CV 解決了問題。
n my RHEL box I tried:git clone https://github.com/graphite-project/graphite-web.gitInitialized empty Git repository in /home/vagrant/graphite-web/.git/and it was hanging and finally giving HTTP timeout error.I tried thenexport http_proxy=http://myuser:mypassword@myproxy:8080and againgit clone https://github.com/graphite-project/graphite-web.gitInitialized empty Git repository in /home/vagrant/graphite-web/.git/error: Failed connect to github.com:443; Operation now in progress while accessing https://github.com/graphite-project/graphite-web.git/info/refs
fatal: HTTP request failed
finally I did:
<code>git config --global http.proxy http://myuser:mypassword@myproxy:8080
git clone https://github.com/graphite-project/graphite-web.git
/<code>
and I got the magic
<code>Initialized empty Git repository in /home/vagrant/graphite-web/.git/
remote: Counting objects: 13933, done.
remote: Compressing objects: 100% (5434/5434), done.
remote: Total 13933 (delta 9025), reused 13065 (delta 8316)
Receiving objects: 100% (13933/13933), 17.15 MiB | 527 KiB/s, done.
Resolving deltas: 100% (9025/9025), done.
/<code>
If you expected such a widely used product like git to give you some hint on how to troubleshoot such a common issue, you are expecting in vain, git is for geeks and geeks are not user friendly.
閱讀更多 王先生要努力變強 的文章
關鍵字: Hat 代理 Enterprise