git push error: RPC failed; result=56, HTTP code = 0 ,the remote end hung up unexpectedly
2023-09-11 14:19:35 时间
git push的时候发生标题上面的错误,不知道怎么解决。搜索了下stackoverflow,上面说是http的postBuffer不够导致的。
要运行以下命令:
git config --global http.postBuffer 2M
但是,很遗憾,没有解决,还是同样的错误。
又有的回答说result=56是github网站本身的问题导致的,瞎,我整个下午都是这样的问题,不可能是github网站本身的问题吧?然后我重新下载最新版的git,重新配置了下SSH key,还是不行。等我解决了就update这文章。。= =!
################################update#####################################
换了个提交方式,不用https了,改用SSH的提交方式就能解决标题错误了:
git remote add origin [ssh_url]
如果以上出现了fatal: remote origin already exists. 这个错误。
那么删除它就可以了:
git remote rm origin
然后再运行:
git remote add origin [ssh_url]
然后接着:
git remote set-url origin [ssh_url]
最后再 git push origin -u master
references:
http://stackoverflow.com/questions/22005259/git-push-error-rpc-failed-result-56-http-code-0
http://stackoverflow.com/questions/18436812/why-do-i-get-error-rpc-failed-result-52-http-code-0-fatal-the-remote-end-h
http://blog.csdn.net/dream_loving/article/details/15812311
http://tiku.io/questions/974312/git-efrror-rpc-failed-result-55-http-code-0-on-push
http://blog.csdn.net/dengjianqiang2011/article/details/9260435
相关文章
- Error -27492: "HttpSendRequest" failed, Windows error code=12152 (invalid server response) and retry。。。
- remote: Coding 提示: Authentication failed问题解决
- svn Error: post-commit hook failed (exit code 127) with output
- Error -27492: "HttpSendRequest" failed, Windows error code=12152 (invalid server response) and retry。。。
- [Py] Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work
- 如何让 Visual Studio Code 里显示 Cypress 的 intelligent code suggestion
- 502 Bad Gateway Registered endpoint failed to handle the request
- SDWebImage/SDWebImage.h‘ file not found || failed to emit precompiled header XX for bridging header
- Unable to install “Visual Studio Code”:snap “code” has “install-snap” change in progress
- 已解决ERROR:ssl_client_socket_impl.cc(992)] handshake failed; returned -1, SSL error code 1, net_error
- 已解决sqlalchemy.exc.OperationalError: (pymssql.OperationalError) (1946, b“Operation failed. The index
- 已解决(MongoDB安装报错)Service ‘MongoDB Server (MongoDB)’ (MongoDB) failed tostart. Verify that you have su
- 【docker】解决 Failed with result ‘exit-code‘和Start request repeated too quickly和Failed to start Docker
- pycuda._driver.LogicError: explicit_context_dependent failed: invalid device context - no currently
- Mac 下python3 [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed 解决方法
- android 解决报错 installation failed with message Failed to finalize session : INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed parse during installPackageLI: Failed to read manifest from /xx/xx/xx.apk
- 表达矩阵melt之后 画图 reshape gaochao ards 1: Unknown or uninitialised column: `p`. 2: Computation failed i
- 使用SVN clang: error: linker command failed with exit code 1 (use -v to see invocation)
- OpenStack的vnc控制台连接报错Failed to connect to server (code: 1006)的解决
- Linux Centos8 Mysql启动(Active: failed (Result: exit-code))及登录报错(ERROR 1045 (28000): Access denied )
- Docker出现 Error response from daemon: driver failed programming external connectivity on endpoint 解决
- Win10解决Android Studio:Gradle sync failed: Failed to open zip file.