undo commit in middle of Git history
git
Solution
Use `git revert <commit hash>`. `git cherry-pick` is for when you want to redo a commit.
Problem
I want to undo a single pushed commit that's "in the middle" of the git history, i.e. it's not the most recent commit. Should I use `git revert <commit hash>`, `git cherry-pick`, or something else?