我初始化了git,然后我做了 git push -u origin master
但当我试图将文件推送到我的github仓库时,我在终端中得到了这些日志。
Enumerating objects: 118, done.
Counting objects: 100% (118/118), done.
Delta compression using up to 4 threads
Compressing objects: 100% (118/118), done.
Writing objects: 100% (118/118), 2.78 MiB | 2.55 MiB/s, done.
Total 118 (delta 0), reused 0 (delta 0), pack-reused 0
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date
结果发现它没有推送任何东西到仓库,我的repo仍然是空的,我如何解决这个错误并推送到我的repo?
我通过重新构建我的项目和git init以及其他步骤来解决这个错误,最后它成功了。