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?
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.
Access the fork.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.