2012-08-29 27 views
0

我無法克隆特定的github分支!當我嘗試這樣做時,它顯示以下錯誤,因爲我的大學中有一臺魷魚代理服務器。無法通過代理服務器克隆github目錄

 Cloning into 'ws'... 
     error: The requested URL returned error: 407 while accessing https://github.com/abcd/efg.git/info/refs 
     fatal: HTTP request failed 

請幫忙!! 在此先感謝。

回答

0

嘗試將代理服務器添加到您的.gitconfig(它位於您的$HOME文件夾)

[http] 
     proxy = http://username:[email protected]:your-proxy-port 

例如:

[http] 
     proxy = http://user:[email protected]:3128 

這必須被放置在您gitconfig的[core]部分。 請參閱here瞭解更多文檔