I have two repository urls, and I want to synchronise them such that they both contain the same thing. In Mercurial, what I\'m trying to do would be:
hg pull
For something similar I use this simple code trigerred by webhook in both repositories to sync GitLab and Bitbucket master branch:
git pull origin master
git pull gitlab master
git push origin master
git push gitlab master
It propably is not what you need in question, but it could be helpful for somebody else who needs to sync just one branch.