代码之家  ›  专栏  ›  技术社区  ›  Inayathulla

Git推送失败HTTP 500 curl 22请求的URL返回错误:500内部服务器错误

  •  22
  • Inayathulla  · 技术社区  · 7 年前

    我刚刚用bit bucket为我的windows机器安装了git。

    Git pull工作正常,当Git push失败时会出现以下错误。

    $ git push
    Counting objects: 10, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (10/10), done.
    Writing objects: 100% (10/10), 174.03 KiB | 0 bytes/s, done.
    Total 10 (delta 6), reused 0 (delta 0)
    error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 Internal Server Error
    fatal: The remote end hung up unexpectedly
    fatal: The remote end hung up unexpectedly
    Everything up-to-date
    

    任何帮助都是非常有用的。

    3 回复  |  直到 7 年前
        1
  •  65
  •   Praveen Govind    6 年前

    将Git缓冲区大小增加到回购的最大单个文件大小:

    git config --global http.postBuffer 157286400
    
        2
  •  4
  •   TOPKAT    3 年前

    这件事发生在我身上是因为我有一个 no space left on device 无法写入任何文件!

        3
  •  1
  •   DobbyTheElf    3 年前

    我很感激这是一个老问题,但之前的建议对我不起作用(我从 git fetch ). 对我起作用的是:

    git gc
    git fsck