Hacker News new | ask | show | jobs
by forgingahead 1550 days ago
It's been like that for at least 6 hours, randomly appearing. I would take a pause and try again and then it would work, but now it's definitely much more persistent.

Guess it's time to go play some video games....

https://xkcd.com/303/

2 comments

Here you go:

  $ while ! git push my; do sleep 1; done
Works for me eventually, although commits do not appear in web interface (they do in the actual repository).
Having been on the receiving end of things like this: please, make the sleep longer. Adding more requests to already malfunctioning system is not a good way to help in fixing it.
Thanks but no thanks - no way am I doing anything to my core app repos when the repo host is fritzing out. This is one of those moments to go for a walk (or bed, depending on your timezone).
-f does not sound like a good idea to me in a script like that.
Also pretty much every usage of -f would be better off being --force-with-lease so you're less likely to accidentally clobber someone else's work. I have git fpush aliased to "push --force-with-lease" and try to spread the gospel when possible :)
Yeah, I learned it by using magit or vscode's other magit and they both default to --force-with-lease.
Good point. I just copy-pasted it from the terminal, as it made sense in my particular situation. I'll remove it.
Also yesterday depending on where you were in the world.