The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Sync from bitbucket to Stash

Praveen Verma
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 20, 2015

Hi,

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 http://user@stash.host.com/repo.git

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

4 votes
Mark McCormack (Adaptavist)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 23, 2015

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: https://scriptrunner.adaptavist.com/stash/latest/docs/administrative_scripts/#mirror-github-or-bitbucker-user-team-or-organization

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

https://www.youtube.com/watch?v=r_r-cqircBo

 

dsheesley
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 13, 2015

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!

1 vote
Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
August 6, 2015

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

TAGS
AUG Leaders

Atlassian Community Events