Git sign commits with PGP key

gpg --list-secret-keys --keyid-format LONG <email>

sec   rsa4096/<key-id> [SC]

git config --global user.signingkey <key-id>

Sign every commit 

git config --global commit.gpgsign true

Check name and email

git config --global user.email <email>
git config --global user.name <name>