I\'m trying to sign my git commits, but when I push them to GitHub they have the Unverified
badge and
The key whose key-id is in the signatu
You can either just put no passphrase on your key when you create it, or you can try gpg-agent. For me it didn't work, I still had to provide a passphrase but it's worth a try:
Update git to at least 2.19.1 because it includes gpg2 now, make sure you use git's gpg and try to use gpg-agent again - it should work now. Only step 2 of your 'gpg-agent' steps should be enough.
You might need to remove your ~\.gnupg
directory including keys if you run into migration problems (beware the error messages can be very misleading), so you can regenerate everything (including keys) using git's gpg.
I have written the complete instructions in this answer.