git rev-parse @~
rev-parse turns various notations into hashes, @ is the current chapter, and ~ is the previous commit.
This generalizes commits arbitrarily far back: for example, you can write @~3 (or @~~~ ) to indicate "three commits in front of the current head."
source share