I need help with gpg key in git. First I export keys from windows with this:
gpg --output backupkeys.pgp --armor --export-secret-keys --export-options export-backup user@email
Then on linux I import this key
gpg --import backupkeys.pgp
and change from unknown to ultimate. So this is how I import this key to linux. But now I need add gpg key to git, so I do this:
git config --global user.signingkey mySuperKey
but when I can create commit
git commit -S -m "Super Commit"
I have this output
error: gpg failed to sign the data
fatal: failed to write commit object
I don't know where is problem.