Hacker News new | ask | show | jobs
by ivalm 2171 days ago
This is a nice reminder that you can have multiple remote repos and push/pull to all of them at the same time. For my side projects I usually use both github and google cloud source (I use gcp). If one is down the other is still available and then just resync when service is recovered.
4 comments

Additionally, I have a machine on my local network that I push to (and that is backed up separately).

Really quick pushes, too :-)

Nice, good tip, I will set that up for my local projects. Not using Github for those, but it nevers hurts to have redundant Git servers.
Yes, push/pull all.
Do you have something set up for the remotes to sync with each other?
No, I do not. Usually though it is easy since whatever reconciliation you did in one repo you can do in another. The only difficulty is if you rewrite remote history, so don’t do it!