2014-05-04 41 views
2

我有這樣的錯誤,我不能連接到代理我花4-5小時與網絡順藤摸瓜尋找線索,但是我不能解決這個問題..的Git代理故障需要asistance

我使用Windows Azure和我我只有代理問題。

我的命令如下:

與代理1.連接

git config --global http.proxy http://<username>:<password>@mapevent.azurewebsites.net:443 

2.Clone錯誤

git clone https://<username>@mapevent.scm.azurewebsites.net:443/mapevent.git 

Cloning into 'mapevent' ... 

fatal: unable to access 'https://<username>@mapevent.scm.azurewebsites.net:443/mapevent.git/': Recv failure: Connection was reset 

我也曾嘗試用端口8080,但是他說「無法解決「,並使用推,但似乎都失敗了。

我是新來的Git,我沒有進展:(

請幫助我,我有一個項目在未來幾周內完成。

回答

4

看來,http://mapevent.azurewebsites.net/不需要代理。它是你想要克隆的遠程起源url的一部分,但頁面「How to Deploy an Azure Web Site」完全沒有提及「代理」。因此請確保刪除代理,然後嘗試克隆:

git config --global --unset-all http.proxy 

如果您需要代理訪問互聯網,您應該已經有HTTP_PROXY(和HTTPS_PROXY)環境變量(如我在「could not resolve host github.com error while cloning remote repository in git」中提到的)。

但是,代理URL(你應該真正使用)將肯定不會<username>:<password>@mapevent.azurewebsites.net:443」:即要克隆的URL的一部分。

+0

非常感謝!我不知道。 – user3565757