*** Please tell me who you are. Run git config --global user.email "[email protected]"

今天在使用git的时候突然提示下面信息:

*** 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.

fatal: unable to auto-detect email address (got 'llll@DESKTOP-J1682P3.(none)')

但是,上面的方法配置的是全局的用户名和邮箱!就是说如果没有单独为项目配置,那提交的所有项目全部都是这个名字和邮箱!

因此你可以使用下面方式:

git config --local user.email "[email protected]"

git config --loacl user.name "your name"

你可能感兴趣的:(*** Please tell me who you are. Run git config --global user.email "[email protected]")