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 "[email protected]"
$ cat ~/.gitconfig 
[user]
        name = Milosz Galazka
        email = [email protected]