首页 > 其他 > 详细

git Please tell me who you are解决方法

时间:2018-05-13 15:25:10      阅读:211      评论:0      收藏:0      [点我收藏+]

在git创建项目时出现,
是因为在创建git文件夹的时候信息不完善导致的
下图是正确
在git创建项目时出现,
是因为在创建git文件夹的时候信息不完善导致的
下图是正确
1.git init
2.git config user.name "someone"
3.git config user.email "someone@someplace.com"
4.git add *
5.git commit -m "some init msg"
*** 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 ‘Administrator@MS-201610130300.(none)‘)


所以解决方法是当出现这个上述提示后 接着补充
你在命令行中执行

git config --global user.email "你的邮箱"
git config --global user.name "你的名字"


(注意 “ 前面是有空格的)
输入完后再接着执行git commit 即可成功!

git Please tell me who you are解决方法

原文:https://www.cnblogs.com/zhangyouwu/p/9032171.html

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