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

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

我正在尝试将我的代码从旧存储库推送到新存储库,因为我的旧存储库似乎以某种方式损坏了

出现以下错误:

Counting objects: 19815, done.
Compressing objects: 100% (5264/5264), done.
Writing objects: 100% (19815/19815), 44.91 MiB | 134.87 MiB/s, done.
Total 19815 (delta 14641), reused 19405 (delta 14283)
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400 Bad Request
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

我尝试了 git config http.postBuffer 524288000 但它没有帮助我什至尝试做 git push --force origingit push --all 但我收到同样的错误

今天早上我遇到了同样的错误。升级到更新版本 (2.29.2.windows.2) 为我解决了这个问题。 抱歉,我没有时间进行 git 跟踪或进一步调查此问题。因此只是分享我的经验。

我遇到了同样的错误。 我的任务是从一台服务器移动到另一台服务器(TFSAzure),所有存储库,除了一个,都可以使用 THIS 程序。 一个存储库在尝试进行 PUSH 时抛出了这样的错误。 这个存储库中大约有 15 个分支。 我决定一次转移一个分支,使用git push url://to/new/repository.git branch-to-move:new-branch-name。 当我将这个选项应用到 master 分支时,我得到了同样的错误。 然后我转移了所有其他分支(它们没有问题)。 之后master分支顺利迁移