如果存储库太大,Azure 函数会显示
RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
操作系统是Windows
当您将源代码推送到 Azure 的
Local Git
部署时,请尝试在推送命令中添加 -u
选项。
git push -u origin master
我遇到了同样的错误,这可能是由于传输大量数据造成的。为了解决这个问题,我必须增加 Git 配置中的
http.postBuffer
大小。
对我来说,这个命令已经成功了
git config --global http.postBuffer 524288000
通过增加 http.postBuffer 大小,我能够推送更改。
执行 2 项操作来解决问题:
操作1:将git升级到最新版本https://git-scm.com/downloads
git version 2.30.1.windows.1
行动2:使用
cmd
代替git bash
(可能是一个错误...)
注意:Stackoverflow 允许回答自己的问题 https://stackoverflow.com/help/self-answer