添加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命令学习

 

相关文章:

  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2021-10-23
  • 2021-11-27
猜你喜欢
  • 2021-10-20
  • 2021-08-20
  • 2022-02-03
  • 2021-12-04
  • 2021-07-17
  • 2022-01-22
  • 2021-09-12
相关资源
相似解决方案