Skip to content

How do I move one commit from a branch to its parent? #1252

Answered by PawelLipski
Artamus asked this question in Q&A
Discussion options

You must be logged in to vote

👋🏻 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!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Artamus
Comment options

@PawelLipski
Comment options

Answer selected by Artamus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants