Sync from bitbucket to Stash


We are in the process of migrating from bitbucket to stash. Out working repository is still BitBucket.

I have created repository in Stash using 

git clone --mirror http://user@bitbucket/repo.git

git remote add stash

git push --mirror stash

Which is success and I am able to see all commits and branches in Stash.

Though, how can I update next time from BitBucket to Stash, only new changes, in incremental way.


2 answers

Hi Praveen,

You may want to take a look at our Add-on ScriptRunner for Stash available in the Atlassian Marketplace.

Specifically, this Add-on has functionality that helps you mirror BitBucket repositories to Stash.

The documentation outlines how you can go about it:

There is also a video you can take a look at too:


Mirroring a BitBucket repo to Stash using this plugin was very easy to setup and get working, and the polling approach required no networking change to expose our internal Stash to BitBucket. Thanks!

You can use this free plugin to achieve what you want.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,739 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you