git commit -S / tag -s
SafeSigned commits and tags
git commit -S -m '<msg>'
Signs commits/tags with GPG or SSH keys — the source of the 'Verified' badge and tamper-proof authorship.
Examples
git config --global gpg.format ssh && git config --global user.signingkey ~/.ssh/id_ed25519.pubSign with an SSH key
Syntax
git commit -S / git tag -s / git config commit.gpgsign true
Before you run it
Adds signatures only.
Related commands
- gpgEncrypt files / verify signatures
- git configConfiguration
- git tagTags
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store