Replies: 4 comments 2 replies
-
|
This can make for a messy history with merges from stable into develop and back again into stable. I personally prefer having merges one way from feature branches into stable. Instead of having a long-lived development branch, create a new feature branch for the next version of BMI, e.g., v2.0-dev or v2.1-dev, etc. Feature branches always get merged into stable, and there's really no need to merge stable into a feature branch but in case changes in your feature branch depend on an up-to-date version of stable you could also rebase the feature branch and notify collaborators on that branch to update their local repositories |
Beta Was this translation helpful? Give feedback.
-
|
Experimenting with |
Beta Was this translation helpful? Give feedback.
-
|
Here's my next thought on a model for branches.
Cherry-picking makes a new commit in Users don't have to worry about This process should address the problem of being able to apply changes in a feature branch to both persistent branches. |
Beta Was this translation helpful? Give feedback.
-
|
You might want to consider using a linear history strategy and only |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
There are two main branches--
developandstable--in the BMI repository. Here are their roles.develop: Development on the BMI is done here. For example, send a PR to this branch if you're proposing a new BMI function. The next BMI release will come from this branch.stable: The BMI definition hasn't changed in this branch since the latest release (v2.0). This is the branch we use to build the documentation. Send PRs to this branch with v2.0-compatible bugfixes and improvements to the documentation.This is close to the git-flow model, with the
masterbranch renamed tostable.What I'm doing that feels a little fishy is that after changes (e.g., documentation improvements) are merged into
stable, I mergestableintodevelop. This waydevelopalways includesstable. This isn't quite a part the git-flow model, where changes are made ondevelopthen merged back intomasterafter a release. I'm open to suggestions for improvement.Beta Was this translation helpful? Give feedback.
All reactions