Skip to content

Merging 6.0 into master and keeping history informative #1032

Closed

Description

@leouieda

Right now, we are periodically merging 6.0 into the master branch. This creates all of these "Merge branch 6.0" merge commits on master. These commits don't really do much but register the merge and are polluting the history of the master branch (making it even harder for us to keep track of changes and have a meaningful changelog in the future).

I've been researching how other projects do this and it's common to use git cherry-pick instead. This command lets you get one commit from a branch and apply it to another. For example, if commit XXX just landed on 6.0, we can apply it to master by:

git checkout master
git cherry-pick XXX
git push origin master

This doesn't create the merge commit, only the new commit from 6.0. An even better way would be:

git checkout master
# Create a new branch to port the commit
git checkout -b port-XXX
git cherry-pick XXX
git push -u origin port-XXX
# Then open a pull request from port-XXX to master

This way, the CI gets run with the new commit to master before anything is merged.

Activity

  1. added
    question
    on Jun 28, 2019
  2. stale commented on Sep 26, 2019

    @stale

    This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.

  3. added
    stale
    on Sep 26, 2019
  4. removed
    stale
    on Sep 26, 2019
  5. stale commented on Dec 25, 2019

    @stale

    This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.

  6. added
    stale
    on Dec 25, 2019
  7. removed
    stale
    on Dec 26, 2019
  8. stale commented on Mar 25, 2020

    @stale

    This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.

  9. added
    stale
    on Mar 25, 2020
  10. removed
    stale
    on Mar 25, 2020
  11. stale commented on Jun 23, 2020

    @stale

    This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.

  12. added
    stale
    on Jun 23, 2020
  13. removed
    stale
    on Jun 23, 2020
  14. seisman commented on Jul 17, 2020

    @seisman
    Member

    We now do the backports automatically. Closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions