GPG Key Generating
gpg --full-generate-key
gpg --list-keys
git config --global user.signingkey {key_id}
gpg --armor --export {key_id} # 导出 GPG 公钥
git config --global commit.gpgsign true # 全局设置默认 GPG 签名
# error: gpg failed to sign the data
# fatal: failed to write commit object
# Solution:
export GPG_TTY=$(tty)