How do I move one commit from a branch to its parent? #1252
-
Given the following structure:
I would like to move the commit |
Beta Was this translation helpful? Give feedback.
Answered by
PawelLipski
May 17, 2024
Replies: 1 comment 2 replies
-
👋🏻 IIUC, I think the easiest approach would be something like: git checkout split-1
git merge --ff-only split-2~
# and, to rectify fork point of split-1
git machete fork-point --override-to-parent Let know if it achieves your purpose! |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Artamus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👋🏻 IIUC, I think the easiest approach would be something like:
git checkout split-1 git merge --ff-only split-2~ # and, to rectify fork point of split-1 git machete fork-point --override-to-parent
Let know if it achieves your purpose!