3 ms·
Just have both gitlab and github as upstreams and push to both every time. aka in your .git/config: [remote "origin"] url = https://github.com/somere
by mitchty 13y ago
Just have both gitlab and github as upstreams and push to both every time. aka in your .git/config:
[remote "origin"]
url = https://github.com/somerepo.git
url = https://gitlab.yourdomain.tld/somerepo.git
fetch = +refs/heads/*:refs/remotes/origin/*
And nothing to worry about when github is down.
- jimktrains2 13y agoHuh. I wasn't aware you could do that. What happens if the repos aren't in sync and you pull?
- mitchty 13y agoI honestly don't know, should test it and find out. Will look at it later today. Edit: curiosity got the better of me https://gist.github.com/mitchty/0c2089445c1400d46cb9 https://gist.github.com/mitchty/0c2089445c1400d46cb9 Basically exactly what you'd think.
- mh- 13y agothe space-time continuum collapses?