Skip to content

Verify Git Commits

Marius David Wieschollek edited this page Oct 14, 2018 · 2 revisions

Create and add a ssh key

Follow this GitLab tutorial or this GitHub tutorial.

Project specific verify settings

You can set the git signing settings on a per-project base. Use the following commands to sign the commits in a project with your gpg key.

git config user.signingkey YOURKEY
git config commit.gpgsign true

Use with IDE (PHPStorm etc.)

To use git signing with your IDE, you will have to edit your GnuPG configuration.

nano ~/.gnupg/gpg.conf

Add these lines to the end of your configuration:

no-tty
use-agent
Clone this wiki locally