Git push: error: RPC failed; HTTP 404 curl 22

Hi everyone,

I use github actions to push my project to Glitch.
When github action runs git push it gets an error:

error: RPC failed; HTTP 404 curl 22 The requested URL returned error: 404
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly

When I manually run the same command git push in my laptop - it works fine.
Any idea why it doesn’t work in Github?

1 Like

Not seen that one before, but I did find git - Github - unexpected disconnect while reading sideband packet - Stack Overflow which has a bunch of things you may want to look at.

1 Like

Thanks for the reply. Actually git origin was not correctly set in GitHub. After setting up origin everything works fine!

1 Like

Good old “git was trying to be helpful by giving you a completely unrelated error message” =P

2 Likes

This is true! :smile: