### Step 1: Set the RSA Public Key in Both SCM (BitBucket and Github) ### Step 2: Ensure StrictHostKeyChecking no in /etc/ssh/ssh_config ### Step 3: Pass repo names as Parameter while executing the Script ### For Example: bash test.sh reponame ### Step 4: Make Sure Ensure You have same repo name in both SCM for i in "$@" do git clone git@bitbucket.org:username/${i}.git cd bbgg git remote set-url --push origin git@github.com:username/${i}.git git push --mirror rm -rf ../${i} done