I have an issue where I committed something earlier without GPG signing it while for the rest of the commits, I installed gpg and signed them. I want to gpg sign this one particular commits. Is there an apt way to gpg sign a particular commit using the commit hash?
How to GPG sign only a particular unsigned commit?
1.3k views Asked by Mahesh Mesta At
1
A commit is signed at the time the commit is created -- the signature is part of the commit.
Depending on your situation you have three options:
--allow-empty
.