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
4,369,924
Community Members
 
Community Events
168
Community Groups

How can I setup a fork sync in btibucket cloud

We have one base software repo that we fork to new repos in other projects in the same workspace. Each project is a customisation repo for a client. we should be able to sync any changes from the parent to its child repo's so that fixes/changes can be migrated easily. But I don't find any documentation on how this is done in Bitbucket Cloud only for bitbucket server. Where is this feature hidden? and if it is not available what would be a good workaround?

1 answer

0 votes
Ana Retamal Atlassian Team Oct 14, 2020

Hi Adriaan, welcome to the Community!

This can be done as a manual process. The changes you make to the parent won't appear in the other repositories automatically, but you can make use of the Sync button. This is explained in our documentation:

These changes do not appear in your fork automatically; you need to sync the fork in order to pull in any outstanding commits.  

  1. Access the fork.

  2. If your fork is behind on commits, the Sync button displaying the number of outstanding commits will be displayed at the bottom of the Repository details pane on the rightmost sidebar.

  3. To sync your fork with the original repository, click the Sync button at the bottom of the Repository details pane.

  • Only the main branch of the repository is synced with your fork. No other branch changes will be detected or available to sync.

  • To sync branches that are not the main branch of the repository, you need to select the branch you want to sync as the main branch on both the parent and forked repository. Once you do this the Sync button will be displayed in the Repository details pane on the rightmost sidebar of the repository's Source page.

 

Was this the feature you were looking for?

I hope this helps you, Adriaan :) If you have any other questions, let us know and we'll be happy to assist.

Best regards,

Ana

@Ana Retamal Hi Ana.

Is there any snapshots or pictures for "the bottom of the Repository details pane on the rightmost sidebar" ? I was wondering how to click the sync button in details.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS

Atlassian Community Events