I had a branch other than 'master', say abc, checked out, and mistakenly made changes which I committed locally (no git push). The branch abc was merged into master at origin, prior to my two commits. Additional commits were made to master
Now, I really want the changes of my two commits applied to the branch master starting with HEAD. What commands would I use?
Related question How to fix committing to the wrong Git branch? really misses what I need, as it just throws away the errant commit, but does not apply it to the correct branch.