MENU

git在push大量文件时fatal: the remote end hung up unexpectedly

January 30, 2024 • linux相关

问题

error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly

解决

在远端nginx转发配置中配置 client_max_body_size 值:

http {
    ...
    server {
        ...
        client_max_body_size 2000m;
        ...
    }
    ...
}

问题2

拉代码时,遇到目录太深导致路径超长问题:

git config --system core.longpaths true
Last Modified: April 8, 2024