How to configure Git

Git is a version control system by Linus Torvalds, same person who wrote linux kernel.


In Archlinux, you can install git by:

$ sudo pacman -S git

In Debian and derived distributions:

$ sudo apt install -y git


You have to tell git about the author who committed changes so lets do it.

Name and Email

Tell git about your name and email:

$ git config --global 'John Doe'
$ git config --global ''

Replace John Doe and with your name and with your name and email.

Signing key

If you use gpg to sign the commits/tags, you have to tell git about your signing key.

$ git config --global user.signingkey ''

Replace with your email address you used when creating gpg keypair.