How to set global user name and email in git

I need to write this code down as I always forget about it.

$ git config --global user.name "Milosz Galazka"
$ git config --global user.email "milosz@sleeplessbeastie.eu"
$ cat ~/.gitconfig 
[user]
        name = Milosz Galazka
        email = milosz@sleeplessbeastie.eu
Milosz Galazka's Picture

About Milosz Galazka

Milosz is a system administrator working for a successful Polish company and a long time supporter of Free Software Foundation and Debian operating system.

Gdansk, Poland https://sleeplessbeastie.eu