Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Keeping merge commits #59

Open
dashersw opened this issue Aug 29, 2020 · 0 comments
Open

Keeping merge commits #59

dashersw opened this issue Aug 29, 2020 · 0 comments

Comments

@dashersw
Copy link

Git rebase has an option called --rebase-merges. This keeps any merge commits that are on the branch to be rebased. Imagine a scenario where a branch is a combination of several other branches, but the authors want to rebase it onto master. In the current situation all the merge commits are lost and a single, linear branch will be created. --rebase-merges allows to keep the original history of that branch, along with all the merge commits, and just rebases it onto the target branch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant