I have two branches off of master, each one for a different feature, and then I have a synthesis branch that combines the two. I committed something to the synthesis branch, but now I see I would have rather applied that change to one of the branches particular to that feature. Is there a way to do this unapply/apply somewhere else maneuver with git?
Share
Cherry-pick commit to target branch and reset source branch. Assuming, you want to move the latest commit from
sourcebranch totarget, do:If the commit wasn’t the last, you will have to use
git rebase -iinstead of the last command and choose specific commit name for yourcherry-pick.