git config user name email 2018-07-18 09:08

Use following command to add user name and email.

$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com

After execute the commands you can find the config in ~/.gitconfig file.

The content of ~/.gitconfig file is here.

[user]
    name = John Doe
    email = johndoe@example.com

You can also edit ~/.gitconfig file directly to config user name and email.

EOF