git clone 时注意点

环境:
在公司访问外网需要设置代理,另外,在公司局域网内架设了一台 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 服务器网址)

posted @ 2018-09-26 16:15  icuic  阅读(849)  评论(0编辑  收藏  举报