So, feel free to correct me if I am wrong but this is my current knowledge about ts:
- PGP and SSH both use asymmetric encryption; in other words there is always a public and private key.
- You can verify the sender with your public key if the sender signs whatever he sends with his private key.
- You tend to insert your public key into remote Git repository like Github etc.
So should your private key not be sufficient to verify your identity when you push commits? Why would you want to use PGP instead?
Commit signing isn’t to authenticate with the remote repository. It includes the signatures in the commit data so they can be verified by anyone with a copy of the repo.