Initial setup
Git
Anyone can use any name and email id when committing in git. Hence, it is always a good idea to sign the commits. This protects against identity impersonation.
Using GPG to create signing keys
For example, this is how a key is created that remains valid for 1 ...