gpg --list-signatures
look for lines starting with "sig" to get the hash
then run this to sign all commits from all repositories using this signature
git config --global user.signingkey 50AF246E5419527E git config --global commit.gpgsign true
echo "test" | gpg --clearsign
quand je commit ça fait cette erreur
# git commit --no-verify -am up error: gpg failed to sign the data fatal: failed to write commit object
solution
export GPG_TTY=$(tty)
go to user settings > gpg keys and add your key.
Now when you commit you see a green lock