Macbook git user config global

Shell
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]
Source

Also in Shell: