One of the 100 questions in this topic
The git commit --gpg-sign command, or its shorter form git commit -S, is used to create a commit signed with your GPG key.