今天早上使用git clone时出现的莫名错误:
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
错误截图
在网上找了半天的解决方法终于搞定:
You could experiment with disabling this feature by editing /etc/gitlab/gitlab.rb and running sudo gitlab-ctl reconfigure:
在/etc/gitlab/gitlab.rb直接添加下面👇一行命令然后sudo gitlab-ctl reconfigure。
nginx[‘custom_gitlab_server_config’] = ‘proxy_buffering off;’