Wednesday, 7 June 2023

GPG - key set up 2023, GPG which key to use , GIT reset email and username

GPG key set up :

https://docs.github.com/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key

git gpg signing 

generate :

gpg --full-generate-key



list :

$ gpg --list-secret-keys --keyid-format=long

/Users/hubot/.gnupg/secring.gpg

------------------------------------

sec   4096R/3AA5C34371567BD2 2016-03-10 [expires: 2017-03-10]

uid                          Hubot <hubot@example.com>

ssb   4096R/4BB6D45482678BE3 2016-03-10



export public key:

gpg --armor --export 3AA5C34371567BD2



use for signing : 

git config --global --unset gpg.format


git config --global user.signingkey 3AA5C34371567BD2

 


which key to use :


https://docs.github.com/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key


Also might need to reset email and username so they match your git remote profile


https://stackoverflow.com/questions/31652094/commiter-email-address-does-not-match-in-intellij-even-changing-it-to-correct-on

  • git config --global user.email "email@example.com"
  • git config --global user.name "email@example.com"

No comments:

Post a Comment