Git設置HTTP/HTTPS代理服務器


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

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM