2013-12-15 37 views
0

我已經安裝了Windows 8(在此之前,我使用Windows 7)。在Windows 7上,我正常使用git命令。但我不知道爲什麼在Windows 8下,git與網絡(推,拉或克隆)相關的命令無法工作。例如,當我使用:Windows 8:混帳不能推或拉或

git clone https://github.com/jfeinstein10/SlidingMenu 

如下一些後,我改變了另一個鏈接,但仍然得到了同樣的錯誤:

git clone https://github.com/jfeinstein10/SlidingMenu.git 

我會收到此錯誤:

fatal : unable to access "https://github.com/jfeinstein10/SlidingMenu' Could not resolve proxy : proxyaddress 

我已經使用Google並獲得一些結果,但是當我嘗試仍然無法解決此問題。

請告訴我如何解決這個問題。謝謝:)

+0

我猜測,它不要求您輸入用戶名/密碼? – BRogers

+0

@BRogers你能告訴我更多細節嗎?事實上,我只是克隆回購,所以我不認爲任何關係到用戶名/密碼這裏 – hqt

+0

回答,希望幫助:) – BRogers

回答

4

該URL不必以.git結尾,這應該工作正常。

git clone https://github.com/jfeinstein10/SlidingMenu 

真正的問題是你的代理服務器設置:

fatal : unable to access " https://github.com/jfeinstein10/SlidingMenu ' Could not resolve proxy : proxyaddress

由於代理服務器的價值顯然是「proxyaddress」,它看起來像一個副本&粘貼git的配置,你忘了替換「 proxyaddress「與您的代理服務器的正確地址。無論是固定在你的~/.gitconfig或刪除代理具有完全設置:

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

它必須結束它的.git

試試這個

git clone https://github.com/jfeinstein10/SlidingMenu.git 

隨機的git克隆URL的例子

https://github.com/joewalnes/websocketd.git 
+0

如果你想克隆到一個特定的名稱,你可以做'git clone https://github.com/jfeinstein10/SlidingMenu.git [把git目錄的名字你想在這裏' – BRogers

+0

我已經改變你的鏈接(雖然舊鏈接仍然在Windows 7下工作正常)但仍然沒有結果 – hqt

+0

不會給你一個錯誤? – BRogers

0

好像你複製的URL錯誤(應該以.git結尾)。例如:https://github.com/xxxxx/xxxx.git

請確保您複製了URL的全長。

+0

我改變了你的鏈接(雖然舊鏈接仍然在Windows 7下工作正常),但仍然沒有結果,並得到相同的錯誤:(我編輯我的文章 – hqt

+0

嘗試在以下鏈接中建議的步驟:http:// stackoverflow。 com/questions/18356502/github-failed-to-connect-to-github-443-windows-failed-to-connect-to-github – Codex

+0

Github https回購網址不必以'.git'結尾。一個簡單的測試顯示這一點。 –