Setup GPG pub key for git server
Setup GPG key for git client
- List all GPG key
gpg -K
- Setup signingkey for git
git config user.signingkey your-key
- Enable gpgsign for git commit
git config commit.gpgsign true
using gpg2
git config --global gpg.program $(which gpg2)