問題1:error: RPC failed; HTTP 400 curl 55 Send failure: Connection was reset
解決辦法:調整本地git客戶端POST緩存大小。
git config --global http.postBuffer 157286400
問題2: HTTP 413 curl 22 The requested URL returned error: 413
解決辦法:調整Nginx服務器默認上傳文件的大小(默認值=1M)
vim /etc/nginx/nginx.conf
# 在http{}段中添加 client_max_body_size ,# 20m爲允許最大上傳的大小。
client_max_body_size 20m;
# 重啓nginx
nginx -s reload