Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Maintaining a mirror of an external repo in BitBucket

I would like to "mirror" external libraries that I use (e.g. from GitHub) on my BitBucket account, just in case the original disappears and it has been submoduled into my code. I can then submodule the external library from my mirrored version instead of the original.

If I was doing this locally I would clone the repo, then I could pull any updates done to it. What I'm looking for I guess is the ability to clone into my BitBucket account. The nearest thing I can find is Import existing code, but I don't think I would be able to pull any changes to that (i.e. once imported it is totally seperated from the original).

Having it in my BitBucket account instead of just locally means I can access from multiple machines, VMs, etc.

Any suggestions on how to go about something like this?

1 comment

Hello @sodally,

Unfortunately, there's no such built-in integration between Bitbucket and Github. The manual sync procedure you described sounds correct, and it can be automated with a simple script.

Sorry for the inconvenience.



Log in or Sign up to comment
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,085 views 2 9
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you