简体   繁体   English

Git 推送失败 HTTP 500 curl 22 请求的URL返回错误:500 Internal Server Error

[英]Git push failing HTTP 500 curl 22 The requested URL returned error: 500 Internal Server Error

I have just setup git with bit bucket for my windows machine.我刚刚为我的 windows 机器设置了带有位桶的 git。

Git pull works properly, where as git push fails with below error. 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

Any help is of great use.任何帮助都有很大用处。

Thanks谢谢

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

git config --global http.postBuffer 157286400

我仔细观察过,对我而言no space left on device错误还没有空间......我的服务器硬盘驱动器没有空间写任何文件!

I appreciate this is an old question, but the previous suggestions didn't work for me, what did was:我很欣赏这是一个老问题,但之前的建议对我不起作用,是:

git gc
git fsck

In my case this same error showed up when I had old credentials saved in the git credentials store.在我的例子中,当我将旧凭证保存在 git 凭证存储中时,同样的错误出现了。

Updating the credentials in the ~/.git-credentials file solved the issue for me.更新 ~/.git-credentials 文件中的凭据为我解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM