Hi There
I'm trying to sync our repository on Bitbucket with a fresh repository on Github, such that when I push code to origin (Bitbucket), it pushes that commit on to the "mirrored" Github repository.
To do this, I created the Github repo and set up the ssh keys etc. I then added a Pipleline to Bitbucket called bitbucket-pipelines.yml which has the following code:
clone:
depth: full
pipelines:
default:
- step:
script:
- git push --mirror git@github.com:orgname/nameofrepo.gitThis brought over every commit and tag and the branch which I was currently on, but it did not bring over the other branches.
Do you know how to achieve this?
Thanks