拉取代码时报错如下:
error: RPC failed; curl 56 Malformed encoding found in chunked-encoding
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
原因是拉取的文件太大(2.97G)。

试了网上提供的解决方案大多为修改配置,未能解决。如
git config –global http.postBuffer 1524288000
解决措施:git通过ssh方式连接gitLab
1、在git bash或命令行输入
ssh-keygen -t rsa -C "lizhongxun@sunline.cn"

连续回车,生成如下文件

2、打开id_rsa.pub(公钥),复制里面的内容到红框2中,点击add key。


3、测试ssh:ssh -T git@e-git.yfb.sunline.cn

出现 Welcome to ...表示成功。
4、使用ssh从gitlab服务器clone代码
git clone git@e-git.yfb.sunline.cn:clsj/sundataimp/sunimp-docs.git

仍然报错,将域名换成IP

再次clone,成功!

1万+

被折叠的 条评论
为什么被折叠?



