fatal: unable to auto-detect email address (got 'tim@newton.(none)')的解决方法


问题描述:

使用git commit -m "wrote a readme file",就遇到了这个问题
** 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 'tim@newton.(none)')

解决办法:

找到工程目录的.git文件夹,打开之后找到config文件,在最后边添加如下信息:

[user]
email=your email
name=your name

注:你可能会找不到工程目录下的.git文件,那是因为这个目录默认是隐藏的,我们将它显示就阔以了。

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM