2017-07-14 96 views
-2

无法完成GitHub共享过程。成功创建GitHub上项目,但初始提交失败:当我在github上推送我的代码时,推送到Git返回错误代码

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: empty ident name (for <(NULL)>) not allowed 

执行

git -c core.quotepath=false commit -m "Initial commit" -- 
+1

https://help.github.com/articles/setting-your-username-in-git/ –

回答

1

运行这些命令git的告诉你在。设置姓名和电子邮件:

git config --global user.email "[email protected]" 
git config --global user.name "Your Name" 
+0

可以接受的答案,如果你发现它有用吗? –