4 ms·
Coincidentally, I just finished setting up Gitlab and Gitlab CI on a private server. If I could set up repo mirroring between it and Github, it would add a laye
by adyus 13y ago
Coincidentally, I just finished setting up Gitlab and Gitlab CI on a private server. If I could set up repo mirroring between it and Github, it would add a layer of protection for getting critical work done (security by distribution?).
- mitchty 13y agoJust 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?