初次安装git后需要配置用户名和邮箱,输入命令:

1
2
$ git config --global user.email "you@email.com"
$ git config --global user.name "Your Name"

即可。