HI, i got 2 bitbucket repos in different accounts that need to sync when pushing into a staging branch in the first one it needs to push into the second repo, created the SSH key in the first one and added in the second one
this is my pipeline
branches:
branch-stg:
- step:
name: Push to STG
script:
- git remote add staging git@bitbucket.org:target-account/target-repo.git
- echo $'Host *.bitbucket.org\n\tStrictHostKeyChecking no' >> ~/.ssh/config
- git push staging branch-stg -f