PGP Commit
Sign a commit with openpgp and nodegit
Install
npm install pgp-commit
Example
See more examples in examples folder
const git = const pgpCommit = { // clone a repo const repo = await git const commitMessage = 'add data to something' const author = gitSignature const committer = gitSignature // make a change fs // stage the change const index = await repo await index await index // make a signed commit const commitId = await }
Add your public GPG key to github
see https://help.github.com/articles/adding-a-new-gpg-key-to-your-github-account/
Get your private key from cmd line
$ gpg --export-secret-key -a "username"