设置git代理(http方式)


添加http代理

git config --global http.proxy "http://127.0.0.1:8001"

git config --global https.proxy "http://127.0.0.1:8001"

这里的端口要根据自已在代理中设置的。

 

取消设置

git config --global --unset http.proxy

git config --global --unset https.proxy

 

clone代码

命令:git clone https://github.com/owner/git.git,此时会让你输入用户名和密码。

如果在git clone时报RPC failed; curl 18 transfer closed with outstanding read data remaining 错误,请查看这个解决方法。

 

git代理ssh方式

git命令学习

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM