赞
踩
本人有一段时间未将自己的项目进行代码更新,今天有所更新,在进行更新后的代码从本地库提交到远程库时,出现提示信息如下:
*** 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文件。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。