关于git提交失败报错POST git-receive-pack (chunked)或者HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large

1.先更改一下git的上传限制大小

命令: git config http.postBuffer 524288000
或者找到user文件夹(即前往/个人),找到.gitconfig(为隐藏文件,需打开)更改[http]下的
postBuffer = 524288000

文件的显示隐藏命令
显示:defaults write com.apple.finder AppleShowAllFiles -boolean true
隐藏:defaults write com.apple.finder AppleShowAllFiles -boolean false
需重启finder

2.若以上不能解决问题,尝试服务端解决,修改nginx

关于git提交失败报错POST git-receive-pack (chunked)或者HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large_第1张图片
Paste_Image.png

你可能感兴趣的:(关于git提交失败报错POST git-receive-pack (chunked)或者HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large)