环境:
在公司访问外网需要设置代理,另外,在公司局域网内架设了一台 GIT 服务器。

在使用 git clone 时,不能设置成 git 使用代理:
git config --global http.proxy xx.xx.xx.xx:xx
git config --global https.proxy xx.xx.xx.xx:xx

在使用 git clone 之前,需要设置环境变量:
export GIT_SSL_NO_VERIFY=1

在使用 git clone 之前,需要对 git 作如下配置:
git config --global http.postBuffer=524288000

在使用 git clone 之前,需要在 /etc/hosts 中添加一行:
xx.xx.xx.xx(git 服务器 ip 地址) abc.deg.fgh...(git 服务器网址)

相关文章:

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