您的位置:首页 > 理论基础 > 计算机网络

error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 Internal Server Error

2017-08-16 23:59 2261 查看
欢迎访问我的个人博客网站:http://www.yanmin99.com/

error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 Internal Server Error

错误信息如下:

yanmin:notes yanmin$ git push origin master
Counting objects: 42, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (42/42), done.
Writing objects: 100% (42/42), 1.22 MiB | 0 bytes/s, done.
Total 42 (delta 23), 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


原因分析:

我这边这个原因是这次push的内容过大

解决方案:

1、我的解决方案是强制推送

yanmin:notes yanmin$ git push -u origin master -f
Counting objects: 42, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (42/42), done.
Writing objects: 100% (42/42), 1.22 MiB | 0 bytes/s, done.
Total 42 (delta 23), reused 0 (delta 0)
To git@git.yanminhaoren.com:gitbook/notes.git
452afa2..09a9ae4  master -> master
Branch master set up to track remote branch master from origin


2、我这边用的http协议,你可以换成ssh协议,也能解决这个问题。

git remote set-url origin git@git.xxx.com:gitbook/notes.git
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐