To generate ssh keys see here Linux or Windows
With ssh key add. Works only for github, when you need to access github enterprise servers this needs adjustment.
Host github.com
IdentityFile ~/.ssh/githubkey
Tagging
git tag v1.0
git push --tags
CodeCommit
ssh config for AWS code commit
Host git-codecommit.*.amazonaws.com
User ABCEDEUserKey
IdentityFile ~/.ssh/privateKey
So that the ssh key gets used when cloning repositories.
Create new GPG key without gui prompts, see also Docs
Add the exported Key in Github under Settings > SSH and GPG Keys at New GPG Key
Configuring git to use the key for signing