Git設置HTTP/HTTPS代理服務器
git config --global http.proxy http://localhost:port git config --global https.proxy https://localhost:port
其中,localhost為服務器地址,port為服務端口
實例
這里以設置本地代理服務127.0.0.1:1080為例。
git config --global http.proxy http://127.0.0.1:1080 git config --global https.proxy https://127.0.0.1:1080
