直接拉取caffe源码时(git clone https://github.com/BVLC/caffe.git)会出现传输关闭的错误
1.修改下载配置
git config --global http.postBuffer 5242880000
git config --global https.postBuffer 5242880000
git config http.sslVerify "false"
然后查看是否已配置:git config --list
2.修改下载深度
git clone https://github.com.xxxxxxxxx.git --depth 1
–depth 1的含义是复制深度为1
3.设置网络延时时段
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
完成!
参考:https://blog.csdn.net/qq_39820671/article/details/105052456