[报错]Github提交

fatal: unable to auto-detect email address (got ‘user@Ubuntu1604.(none)’)

错误提示

*** Please tell me who you are.

Run

git config --global user.email “[email protected]
git config --global user.name “Your Name”

to set your account’s default identity.
Omit --global to set the identity only in this repository.

问题描述

在第一次提交git版本时出现 原因是没有输入自己的邮箱和用户名
按照提示 进行输入

解决

执行以下命令:

  • git config --global user.email “你的邮箱”
  • git config --global user.name “用户名”

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_37747189/article/details/115342449