解决提交到github报错Please tell me who you are.和为不同的项目设置不同的名称
来源:互联网 发布:iis url重写 端口号 编辑:程序博客网 时间:2024/06/06 00:25
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
- vS2013中使用 strcpy()会报错的问题解决方案
- log4net 系统操作日志
- caffe随记(七)---训练和测试自己的图片
- Glide的使用总结
- SVM支持向量机代码实现流程
- 解决提交到github报错Please tell me who you are.和为不同的项目设置不同的名称
- leetcode--Kth Largest Element in an Array
- 写下我的第一篇博客
- 数字统计
- Mysql 基础应用之group by/ having 用法
- LINUX学习笔记一
- Android 解决Only the original thread that created a view hierarchy can touch its views异常
- leetcode--Populating Next Right Pointers in Each Node II
- 欢迎使用CSDN-markdown编辑器