Skip to content

Instantly share code, notes, and snippets.

@Mixerou
Created October 15, 2022 10:44
Show Gist options
  • Select an option

  • Save Mixerou/1b012b86119fc1147bf03789fc3421ae to your computer and use it in GitHub Desktop.

Select an option

Save Mixerou/1b012b86119fc1147bf03789fc3421ae to your computer and use it in GitHub Desktop.
Use GPG key in Git
  • git config --global --unset gpg.format
  • gpg --list-secret-keys --keyid-format=long
sec   4096R/3AA5C34371567BD2 2016-03-10 [expires: 2017-03-10]
uid                          User <[email protected]>
ssb   4096R/4BB6D45482678BE3 2016-03-10
  • git config --global user.signingkey 3AA5C34371567BD2
  • git config --global commit.gpgsign true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment