I have two working branches, master and forum and I\'ve just made some modifications in forum branch, that I\'d like to ch
Since you're cherry-picking, you can:
cherry-pick
it with --no-commit
option added.reset
and use add --patch
, add --edit
or just add
to stage what you want to keep.commit
the staged changes.
--reuse-message=
or --reedit-message=
options to the commit
command.reset --hard
.Another way, preserving or editing the original commit message:
cherry-pick
the original commit as normal.add
to stage the reversal.
commit --amend
to effect the reversal on the cherry-picked commit.