Skip to content

Instantly share code, notes, and snippets.

@nuxwin
Forked from LauLaman/gpg.md
Created March 28, 2017 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nuxwin/8deeccc9952672db73f4eedf0d95ff62 to your computer and use it in GitHub Desktop.
Save nuxwin/8deeccc9952672db73f4eedf0d95ff62 to your computer and use it in GitHub Desktop.
Use GPG to sign commits using git & PHPStorm

1 - install GPG tools : https://gpgtools.org/

2 - Create new key for your github email

3 - Add key to git on your local machine: git config --global user.signingkey YOURKEY

4 - configure git to sign all commits: git config --global commit.gpgsign true

5 - add to the bottom of ~/.gnupg/gpg.conf:

no-tty
use-agent

6 - Add key to you're github profile settings: gpg --armor --export YOURKEY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment