by gfodor · 13y ago · 0 comments
you <--> (X <--> Y)
If you push to and pull from X, and X should be unavailable, automatically start using Y. When X is pushed to, check with Y first to keep in sync. There are ways to push to multiple remotes by defining multiple remote URLs, but then it's a harder problem of dealing with downtime.git add remote <name> <url> git add remote <name> <url> then create a shell script that checks both remotes for the latest if one is greater than the other merge the two if they are the same then push to both. Then just always push with that script.
Just how I've handled it so far. That said a autoMagical way of handling it built into github/git itself would be cool.
Doesn't help if you use GitHub for issues, of course, but hey!