1. 使用proxy 开启: git config --global http.proxy $server:$port git config --global https.proxy $server:$port 关闭: git config --global --unset https.proxy git config --global --unset http.proxy 关闭SSL CERT verification: git config --global http.sslVerify false 启用默认的SSL CERT verification: git config --global --unset http.sslVerify 2.断点续传 git clone总是出错那么: 1).建立repo的本地存储目录 2).进入目录执行 git init生成.git索引文件夹 3).继续执行 git fetch GIT_REPO_URL, 如果掉线,可继续重复执行该命令知道看到如下标志表示fetch成功: From GIT_REPO_URL *branch HEAD -> FETCH_HEAD 4). 执行 git checkout FETCH_HEAD |
|