Git trick: shortcut to cherry-pick the last commit to a repo

I discovered a handy git command on accident recently that allows you to cherry-pick the most recent commit to a repo. It’s as easy as:

git cherry-pick -

Yep, that’s literally it. No need for a commit hash.

Written on November 20, 2014