3 ms·
Git is after all designed for this distributed scenario, so you'd think it would be possible, what about something like: Setup: git add remote gitlab ...
by anon4242 8y ago
Git is after all designed for this distributed scenario, so you'd think it would be possible, what about something like:
Setup:
git add remote gitlab ...
git add remote github ...
Then whenever you need to sync:
git fetch --all
git checkout -b gh --track github/master
git checkout --track gitlab/master
git merge/rebase gh
git push gitlab
Could probably be done shorter but those steps should do it..
- johannes1234321 8y agoThis has the issue that you have to add this to your Workflow and nice wrappers have to be put on all workstations. A mirroring setup like provided in GitLab (see sibling post) takes that burden away.
- frutiger 8y agoCheck out the `--mirror` flag.