git中报unable to auto-detect email address 错误的解决拌办法

匿名 (未验证) 提交于 2019-12-02 23:55:01

昨天刚配置好的git,今天刚要commit一些修改,就遇到了这个问题
** Please tell me who you are.


Run






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 'tim@newton.(none)')


后来找到了解决办法:
找到工程目录的.git文件夹,打开之后找到config文件,在最后边加上一句话
〔user〕


your email 和your name随便写上就行
参考链接:https://www.cnblogs.com/icebutterfly/p/7807806.html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!