当前位置:   article > 正文

*** Please tell me who you are. Run git config --global user.email “you@example.com“

*** please tell me who you are. run git config --global user.email "you@exam

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

  1. *** Please tell me who you are.
  2. Run
  3. git config --global user.email "you@example.com"
  4. git config --global user.name "Your Name"
  5. to set your account's default identity.
  6. Omit --global to set the identity only in this repository.
  7. fatal: unable to auto-detect email address (got 'llll@DESKTOP-J1682P3.(none)')

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

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

git config --local user.email "your@example.com"

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/895537
推荐阅读
相关标签
  

闽ICP备14008679号