Git 克隆加速 代理設置

從某些倉庫克隆代碼巨慢,甚至很容易失敗,所以設置代理非常有必要。

設置代理:

git config --global https.proxy http://127.0.0.1:1086

git config --global https.proxy https://127.0.0.1:1086

git config --global http.proxy 'socks5://127.0.0.1:1086' 

git config --global https.proxy 'socks5://127.0.0.1:1086'

取消代理:

git config --global --unset http.proxy

git config --global --unset https.proxy
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章