Skip to content

Instantly share code, notes, and snippets.

@haydonryan
Last active February 17, 2018 16:42
Show Gist options
  • Select an option

  • Save haydonryan/3c1f83098814e1c47a74c09e5a8185b3 to your computer and use it in GitHub Desktop.

Select an option

Save haydonryan/3c1f83098814e1c47a74c09e5a8185b3 to your computer and use it in GitHub Desktop.

Revisions

  1. Haydon Ryan revised this gist Feb 17, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions GPG Signed Commits
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,7 @@ gpg --list-secret-keys --keyid-format LONG

    # https://help.github.com/articles/generating-a-new-gpg-key/

    git config commit.gpgsign true # do this per repo
    git config --global user.signingkey <<key ID >>

    NOTE: you must have signed using the same email address as set by git config --global user.email otherwise github will show unverified on the commit
  2. Haydon Ryan created this gist Feb 17, 2018.
    15 changes: 15 additions & 0 deletions GPG Signed Commits
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@

    brew doctor
    brew update
    brew install -v gpg

    gpg --full-generate-key

    gpg --list-secret-keys --keyid-format LONG

    # https://help.github.com/articles/generating-a-new-gpg-key/

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

    NOTE: you must have signed using the same email address as set by git config --global user.email otherwise github will show unverified on the commit