3 ms·
How do you keep the repos in sync?
by oweiler 6y ago
How do you keep the repos in sync?
- atommclain 6y agoMy guess is some form of: git checkout master git pull github/master git push gitlab/master
- chx 6y agoIt's quite easy to set a git repo up to push to multiple upstreams. https://gist.github.com/bjmiller121/f93cd974ff709d2b968f https://gist.github.com/bjmiller121/f93cd974ff709d2b968f also see https://stackoverflow.com/a/849960/308851 https://stackoverflow.com/a/849960/308851
- rgibert 6y agoYou can setup git push to push to multiple repos. git remote set-url --add origin ...
- fiddlerwoaroof 6y agoI use multiple hosts to backup my repos: I host gitolite.org on a $5 VM and then have it configured to automatically push to gitlab and GitHub on every change.
- rhn_mk1 6y agoI use GitLab as the primary source, and mirror it to GitHub. Or, I would have, if the builtin GitLab mirroring feature wasn't broken for pushing to GitHub.