git国内访问较慢,走代理较快。

方法:git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:port_number(有用户和密码)

   git config --global http.proxy http://proxy.server.com:port_number(无用户和密码)

    注:proxy.server.com指代理地址,port_number指端口号。

参考内容:http://stackoverflow.com/questions/783811/getting-git-to-work-with-a-proxy-server

相关文章:

  • 2022-12-23
  • 2021-12-10
  • 2021-05-10
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2021-04-29
  • 2021-11-18
猜你喜欢
  • 2022-01-07
  • 2021-09-26
  • 2021-11-23
  • 2021-06-30
  • 2021-06-06
  • 2021-04-19
相关资源
相似解决方案