No overview provided yet.
-
Add your SSH public key into your github account, right in [Github -> Settings -> Keys].
-
in terminal type the following:
git config --global gpg.format ssh
- and then:
git config --global user.signingKey /path/to/ssh/key
Replace the
/path/to/ssh/key
to the full path of your SSH key such as/home/$USER/.ssh/id_rsa.pem
- and then:
git config --global commit.gpgSign true
This command will sign at the commit level.
Without this step, you will need to use
-S
flag withgit commit
, as followsgit commit -S -m "msg"
Happy Commiting