fatal unable to auto-detect email address (got 15153@DESKTOP.(none))的解决方法

问题

使用git commit -m "......" 提交的时候,报出了下面的问题
*** Please tell me who you are.

Run  
  
  git config --global user.email "[email protected]"  
  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 '15153@DESKTOP-0U0U3NE.(none)') 

解决方法

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

[user]
email=your email
name=your name

注意

这里 .git 为隐藏文件,并且 your emailyourname 这里对应你的要修改的。

原创文章 54 获赞 29 访问量 6436

猜你喜欢

转载自blog.csdn.net/qq_37391214/article/details/102611967
今日推荐