A pretty frequent scenario for me is writing a long, thoughtful commit message, then fat-fingering my smartcard PIN.
% git commit
error: gpg failed to sign the data
fatal: failed to write commit object
After this when running git commit
again the message is lost. Is there a way to have Git remember the previous message?