I am planning some projects. I don't care about the technology, the language and the framework. The doubt is conceptual, how to work with the base structure.
I have a repository in Bitbucket with a base scaffolding (repository: scaffolding).
I start the project A from that scaffolding. How? a fork? a clone of that repository?
I start project B, from that scaffoldinb. How, a fork, a clone of that repository?
And all of a sudden, I update things in the scaffolding, and I need project A and B to download those base changes.
How should this be set up so that if the scaffolding updates the rest of the projects easily?
Hi Javi,
You can create forks for project A and project B, from the scaffolding repo.
On the Source page of these forks (on Bitbucket website) you will see a Sync option, that you can use to merge any new changes from the scaffolding.
Please keep in mind that this will only sync the scaffolding's main branch to the fork's main branch.
If you use multiple branches and you want to sync them as well to respective branches of the fork:
1. You can create a new branch in the fork (if it doesn't exist). Then, select the branch you want to sync as the main branch on both the parent and forked repos (you can do that from Repository settings and you can change it back later). You can then sync them with the Sync option from the Source page.
2. Another option is in the knowledge base article you shared, syncing locally by pushing from a clone of the scaffolding to the fork.
In case you use multiple branches and you want to maintain multiple branches in the fork, be mindful of which branch you are pushing from and which branch you are pushing to.
Kind regards,
Theodora
I think I have succeeded.
I used this reference: https://confluence.atlassian.com/bbkb/how-to-auto-sync-forked-repositories-in-bitbucket-cloud-1223820803.html
Is this correct?
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.