I keep getting this error when I try to push anything to my own gitlab server:
Push failed
Failed with error:
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: RPC failed;
curl 56 Recv failure: Connection was reset
I have no idea why I keep getting this error. I kept trying to push and then out of nowhere it pushed it successfully. But everything I tried to push after that just gave me the same error.
Here is a more detailed log:
16:21:39.932: [gallery] git -c core.quotepath=false push --progress --porcelain origin refs/heads/master:master
Counting objects: 12, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (12/12), 1.88 MiB | 25.00 KiB/s, done.
Total 12 (delta 3), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Done
error: RPC failed; curl 56 Recv failure: Connection was reset
git reset --hard HEAD~1
after that. i am adding my project files into the same folder again because everything has reverted into previous stage. so then executing following commands.git add * - git commit -m 'again' - git push
. then it pushes successfully.git push
a few times without the other commands also help?