【问题标题】:RPC failed; HTTP 400 curl 22 The requested URL returned error: 400 Bad RequestRPC 失败; HTTP 400 curl 22 The requested URL returned error: 400 Bad Request
【发布时间】:2020-10-26 10:26:53
【问题描述】:

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

出现以下错误:

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,但收到同样的错误

【问题讨论】:

    标签: git version-control gitlab git-push


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

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

      【讨论】:

      • 感谢您分享此内容。但请注意,根据您提供的信息类型,最好将此作为评论而不是答案。
      • 感谢您的建议!这是我第一次在 SO 上发帖,我想我搞砸了……我会记住对 b/w cmets 和解决方案的尊重。请让我知道是否最好删除此解决方案并改为发表评论。
      猜你喜欢
      • 2019-02-08
      • 2020-12-11
      • 2021-08-16
      • 1970-01-01
      • 2021-09-07
      • 2021-02-10
      • 2014-12-04
      • 2017-02-20
      • 1970-01-01
      相关资源
      最近更新 更多