当我在github上推送我的代码时,推送到Git返回错误代码

时间:2017-07-14 21:33:53

标签: git github

无法完成GitHub共享过程。在GitHub上成功创建了项目,但初始提交失败了:

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

执行期间

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

1 个答案:

答案 0 :(得分:1)

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

git config --global user.email "you@example.com"
git config --global user.name "Your Name"