收到错误时
fatal: The remote end hung up unexpectedly
我可以运行哪些测试来弄清楚发生了什么?我创建了一个全新的 git 存储库,它不会推送!
以下是其他 StackOverflow 问题建议的一些标准诊断:
$ ssh -T git@github.com
Hi keflavich! You've successfully authenticated, but GitHub does not provide shell access.
我设置为使用 ssh:
$ git remote -v
origin git@github.com:keflavich/turbulence_pdfs.git (fetch)
origin git@github.com:keflavich/turbulence_pdfs.git (push)
我收到有关 X11 身份验证的警告:
$ git push -vu origin master
Pushing to git@github.com:keflavich/turbulence_pdfs.git
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
fatal: The remote end hung up unexpectedly
但这些都不重要。
编辑: https 也不起作用......也许这只是 github 服务中断?
error: The requested URL returned error: 403 while accessing https://github.com/keflavich/turbulence_pdfs.git/info/refs