解决提交到github报错Please tell me who you are.和为不同的项目设置不同的名称
来源:互联网 发布:科大讯飞 阿里云 编辑:程序博客网 时间:2024/06/05 07:37
转载地址:http://blog.csdn.net/coco_wonderful/article/details/51822143
今天博主正在愉快地学习在AndroidStudio中使用Git,正看着这篇文章http://www.mamicode.com/info-detail-512945.html眼看就要成功了,结果报了下面这个错∑(っ°Д°;)っ:
Can't finish GitHub sharing process
Successfully created project 'Test' on GitHub, but initial commit failed:*** 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: empty ident name (for (null)>) not allowed during executing git -c core.quotepath=false commit -m "Initial commit" --
看了一下原来是git没有配置的原因,找到git目录下的Git Bash运行,输入下面两行代码即可(什么鬼居然还要命令行配置,就不能做个某Q登录那样的界面一登录就好了么!或者是明明有其他的配置方式但是博主不知道∑(っ°Д°;)っ,有知道的小伙伴一定要告诉博主!):
- git config --global user.email "you@example.com"
- git config --global user.name "Your Name"
--------------------------------------2016/08/30--------------------------------------
上面的方法配置的是全局的用户名和邮箱!就是说如果没有单独为项目配置,那提交的所有项目全部都是这个名字和邮箱!不管是公司项目还是github,还是码云!很蛋疼有木有,当码云提交记录上出现我名字的时候我都惊呆了!
单独为项目配置的方法(全局和单独配置都存在的时候会默认使用项目单独配置的):
1.打开项目所在目录,找到隐藏的.git文件夹。注意这个文件夹是隐藏的,显示隐藏出来就行。
2.打开文件夹里的config文件,推荐用nodepad++打开。
3.添加这三行到文件:
[user] name = XXX(自己的名称) email = XXXX(邮箱)
当然也可以通过命令行的方式,只需要在 .git 文件夹下。 例如执行如下命令:
git config user.name "xxxxx"
- 解决提交到github报错Please tell me who you are.和为不同的项目设置不同的名称
- 解决提交到github报错Please tell me who you are.和为不同的项目设置不同的名称
- 解决提交到github报错Please tell me who you are.和为不同的项目设置不同的名称
- 解决提交到github报错 Run config : Please tell me who you are
- Git上初次提交项目,报Please tell me who you are错误
- 上传代码到github时报错Please tell me who you are
- Gti学习中“Please tell me who you are.”的解决
- 【web前端自动化工作环境配置】5. 解决git commit不成功,报错Please tell me who you are.的问题
- repo Please tell me who you are.
- *** Please tell me who you are.
- Git *** Please tell me who you are.
- Git: “please tell me who you are”
- please tell me who you are?
- Please tell me who you are?
- Xcode中git的使用方法介绍与"Please tell me who you are"问题的解决方案
- Xcode中git的使用方法介绍与"Please tell me who you are"问题的解决方案
- Xcode中git的使用方法介绍与"Please tell me who you are"问题的解决方案
- Xcode 创建poject的时候,弹出Please tell me who you are
- 用Python给头像加上圣诞帽
- 关于Javaweb下ssh框架的getHibernateTemplate的No default constructor for entity异常处理
- NAND Flash SSD 是如何生产出来的?
- 请给我一个女票@andyqian
- AD绘制PCB时候移动原件焊盘
- 解决提交到github报错Please tell me who you are.和为不同的项目设置不同的名称
- 比特币价值飙升,黑客如何从盗取近8千万美元的比特币中获利?
- java无法加载主类问题解决
- java json使用
- NEUQOJ:1061
- ImportError: No module named scipy.sparse
- SharedPreferences首页面存储登录名数据任意页面读取数据显示(存取数据)
- Hdoj 1406 完数
- ISE中ChipScope软件使用