On GitHub, let’s say I committed 12 times (following the “commit often” practice) and now the PR is ready, and I finally got it all reviewed and approved, and clicked on “Squash and Merge” on GitHub.
However, due to some side effect, it was reverted. So after a day later, I need to use the current master
or main
, and apply those 12 changes.
I can cherry-pick
those 12 commits, but it’d be easier if I can just cherry-pick that one commit (that was squashed).
Is there a way to find that commit, and use cherry-pick
to get all those changes in one command line?
4