如果存储库太大,Azure 函数本地 git“RPC 失败;HTTP 400 curl 22 请求的 URL 返回错误:400”

问题描述 投票:0回答:3

如果存储库太大,Azure 函数会显示

RPC failed; HTTP 400 curl 22 The requested URL returned error: 400

操作系统是Windows

git azure-functions
3个回答
0
投票

当您将源代码推送到 Azure 的

Local Git
部署时,请尝试在推送命令中添加
-u
选项。

git push -u origin master

0
投票

我遇到了同样的错误,这可能是由于传输大量数据造成的。为了解决这个问题,我必须增加 Git 配置中的

http.postBuffer
大小。

对我来说,这个命令已经成功了

git config --global http.postBuffer 524288000

通过增加 http.postBuffer 大小,我能够推送更改。


-1
投票

执行 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

© www.soinside.com 2019 - 2024. All rights reserved.