Skip to content

Instantly share code, notes, and snippets.

View alcaeus's full-sized avatar

Andreas Braun alcaeus

View GitHub Profile
@alcaeus
alcaeus / README.md
Last active April 19, 2021 14:26
Enable GPG for git commits

Enable GPG for git commits

Generate a key

  1. Install gpg and gpg-agent: brew install gpg gpg-agent
  2. Generate a new key: run gpg --gen-key and follow the instructions
  3. Write down the ID of the key. To do this, run gpg --list-keys. The output will look like this:
pub   4096R/E9468C9A 2016-04-20 [expires: 2016-07-19]
uid Andreas B.