GitHub
User configuration
git config --global user.name "Marco Antonio Gonzalez Junior"git config --global user.email "m@rco.sh"
SSH configuration
ssh-keygen -t ed25519 -C "m@rco.sh"
eval "$(ssh-agent -s)"ssh-add ~/.ssh/id_ed25519cat ~/.ssh/id_ed25519.pub
Using the output above, create new Authentication and Signing keys on GitHUb
ssh -T git@github.com
SSH commit signature verification
git config --global gpg.format sshgit config --global user.signingkey ~/.ssh/id_ed25519.pub
When committing changes in your local branch, add the -S flag to the git commit command:
git commit -S -m "YOUR_COMMIT_MESSAGE"# Creates a signed commit
GPG configuration
gpg --full-generate-keygpg --list-secret-keys --keyid-format=longgpg --armor --export <GPG key id># Prints the GPG key ID, in ASCII armor format
Copy your GPG key, beginning with -----BEGIN PGP PUBLIC KEY BLOCK-----
and ending with -----END PGP PUBLIC KEY BLOCK-----
Note: not using GPG at the moment.