In order to undo changes to the HEAD we can simply run following command:
git reset --hard HEAD~
REF: https://stackoverflow.com/a/30986481
A cherry-pick is basically a commit, so if you want to undo it, you just undo the commit.
when I have other local changes Stash your current changes so you can reapply them after resetting the commit.