set name and email address
$ git config --global user.name "Firstname Lastname"
$ git config --global user.email "your_email@mail.com"
Will be set in dir: ~/.gitconfig
stark@appledeMacBook-Air git-tutorial % cat ~/.gitconfig
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = Lapland-Stark
email = Ellie_Stark1984@163.com