I'm using ssh and RSA keys to access github, but it doesn't work when I push files to the repository.
somename54@THISPC:~/repos/homework-1-name54$ git push
Enumerating objects: 6, done.
Counting objects: 100% (6/6), done.
Delta compression using up to 12 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 2.79 KiB | 2.79 MiB/s, done.
Total 4 (delta 0), reused 0 (delta 0)
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Connection to github.com closed by remote host.
How can I fix this?
I found out that the this error usually happens when your files are too big. But my files were not, and I was able to push all of my other projects. Re-cloning into a separate directory helped, but it did not fix the original issue.