Re: what do I do when git cherry-pick works, but results are bogus?
- In reply to: Rick Macklem : "what do I do when git cherry-pick works, but results are bogus?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 17 May 2023 17:41:33 UTC
On Wed, 17 May 2023, 17:44 Rick Macklem, <rick.macklem@gmail.com> wrote: > So, the subject line basically says it. > I do a git cherry-pick to MFC. It works, but the resultant file(s) are not > correct. What do I do to fix this? > (If the merge fails, then it's easy, but there doesn't seem to be an option > on cherry-pick that forces it into "merge failed", so you can edit/add > the file > and then "git cherry-pick --continue".) > If you're cherry-picking multiple commits then you can turn the problem into a rebase After the cherry-pick commits are created, then run git rebase -i <ref your branch is based on> Then change the `i` at the start of the line for the broken commit to `e` (edit) before saving the plan file