$ gpg --list-secret-keys --keyid-format LONG ... $ git config --global user.signingkey <keyid> $ export GPG_TTY=$(tty)