GIT Course

Verified commits

Go back

You can sign a commit using GPG keys. If you do, you will see this label on each signed commit


The official tutorial about GPG keys should be enough. Note that you will need to write a passphrase each time you are committing (at least each 10 minutes), but you can increase the time your passphrase is cached

My steps

  • see config gpg-agent --gpgconf-list | head -n1
  • edit the file shown / create it if needed (~/.gnupg/gpg-agent.conf)
    • max-cache-ttl 28800 (=8 hours)
    • default-cache-ttl 28800 (=8 hours)
  • save, and exit
  • reload: gpg-connect-agent reloadagent /bye