git push推送时返回错误? [英] Git push returning an error when pushing?

查看:80
本文介绍了git push推送时返回错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

pavan@Pavans-Air link-dashboard % git push origin feat/orders
Enumerating objects: 103, done.
Counting objects: 100% (103/103), done.
Delta compression using up to 4 threads
Compressing objects: 100% (68/68), done.
Writing objects: 100% (72/72), 134.83 KiB | 4.49 MiB/s, done.
Total 72 (delta 35), reused @ (delta 6)
error: RPC failed; curl 92 HTTP/2 stream @ was not closed cleanly: PROTOCOL_ERROR (err 1)
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

将代码推送到GitHub时出现此错误.

I am getting this error when I am pushing the code to my GitHub.

推荐答案

可能是身份验证问题.尝试使用 ssh 而不是 http .

Is probably an authentication problem. Try using ssh instead of http.

您可以使用 git remote 更改当前存储库的来源.

You change the origin of the current repository with git remote.

git remote add origin git@github.com:username/project.git

或者您也可以将 ssh 设置为全局 html 的默认值.

Or you can also set ssh as a default over html globally.

GitHub

git config --global url.ssh://git@github.com/.insteadOf https://github.com/

Bitbucket

git config --global url.ssh://git@bitbucket.org/.insteadOf https://bitbucket.org/

这篇关于git push推送时返回错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆