git 提交失败 HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large

关于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

猜你喜欢

转载自my.oschina.net/zhxx/blog/1810433