Skip to content

Instantly share code, notes, and snippets.

View davevelasco's full-sized avatar

Dave Velasco davevelasco

  • @oinc-ph
  • Philippines
View GitHub Profile
@davevelasco
davevelasco / sign-git-commits-with-gpg-keys.md
Last active May 22, 2021 22:09
Setup git commit signing with GPG keys for GitHub

Sign git commits with GPG keys for GitHub

Signing git commits will help verify that they come from a trusted source. This prevents a commit author from pretending to be someone else.

Check for existing GPG keys

$ gpg --list-secret-keys --keyid-format LONG
  • If GPG keys do not exist, generate a new GPG key
  • Else, add it to your GitHub account