Skip to content

Instantly share code, notes, and snippets.

@tjmonsi
Last active November 4, 2016 05:17
Show Gist options
  • Save tjmonsi/19a58d9b2f6a6c9a8816ccdd111fffea to your computer and use it in GitHub Desktop.
Save tjmonsi/19a58d9b2f6a6c9a8816ccdd111fffea to your computer and use it in GitHub Desktop.
List of commands in order to create GPG for signing
# create gpg
gpg --gen-key
# set RSA and RSA
# set 4096
# set 0 (doesn't expire)
# enter name, email, and comment add which system you are using
# enter passphrase
# make random movements
# list gpg keys
gpg --list-secret-keys --keyid-format LONG
# copy gpg id
# set to git local
git config --global user.signingkey <gpg id>
git config commit.gpgsign true
git config --global commit.gpgsign true
# get gpg public key
gpg --armor --export <gpg key>
# copy key
# go to settings in github
# add key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment