当前位置:   article > 正文

Git config --global user.email or user.name

git config --global user.email

一 概述

本人有一段时间未将自己的项目进行代码更新,今天有所更新,在进行更新后的代码从本地库提交到远程库时,出现提示信息如下:

*** 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 'Zero@zero.(none)')

二 解决该问题的方法

直接通过以下命令进行处理即可:

git config --global user.email "gitHub邮箱"

git config --global user.name "gitHub用户名"

三 本人电脑提示该信息的原因

由于本人电脑上的用户目录下的.gitconfig文件被我之间当作无用文件删除,所以需要重新通过git config命令来生成。截图即为我执行上述命令后的效果,重新生成了.getconfig文件。

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

闽ICP备14008679号