I am using git cherry-pick as part of a bash script. For reporting purposes, I would like to output the resulting commit SHA of this cherry-picking to the console. However, there seems to be no option in the cherry-pick command that would return the commit SHA.
Is there a way to get the commit SHA of the commit that was created using a cherry-pick?