首页 > 其他 > 详细

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

时间:2019-04-04 19:53:21      阅读:498      评论:0      收藏:0      [点我收藏+]

问题描述:

使用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文件,那是因为这个目录默认是隐藏的,我们将它显示就阔以了。

 

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

原文:https://www.cnblogs.com/Terrypython/p/10656499.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!