gitgithubrepositorygithub-pages

How can solve 'error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054' when pushing files to a github repository?


I initialized git and I did git push -u origin master but when I'm trying to push files to my github repository I get these logs in my terminal

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

And turns out it hasn't push anyhting to repository and my repo is still empty . How can I solve this error and push to my repo ?


Solution

  • I solved the error by building my project again and git init and other steps again and finally it worked