“请告诉我你是谁”问题(Mac)

时间:2019-07-23 17:56:32

标签: git macos

为了方便我在终端上写信

git config --global user.mail "[my mail]"
git config --global user.name "[my name]"
Hugos-MBP:ProjetOpenSource beelee_the_bee$ git commit -m "Salan"

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  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 'beelee_the_bee@Hugos-MBP.(none)')

(beelee_the_bee是我的mac名称)

当我写git config -l时,我得到以下回答: user.mail=hugo.vast@gmail.com和 user.name = Huugoo147

所以实际上我的名字和邮件都在,但是我已经收到消息了,我不能提交:?

我阅读了有关本主题的所有问题,但未找到任何解决方案 请帮我^^

1 个答案:

答案 0 :(得分:3)

实际上是git config --global user.email而不是user.mail

相关问题