问题:
Can’t finish GitHub sharing process
Successfully created project ‘GitHubDemo’ 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 ) not allowed during executing git -c core.quotepath=false commit -m “Initial commit xxx”
解决方法:
第一种办法:
1 运行两行代码
git config user.name
"你的名字"
git config user.email
"这个是邮箱"
第二种:
在Git init:初始化git仓库后,生成的 .git文件中
在 .git下,找到config
打开config,添加代码:
[user]
email = 邮箱
name = 用户名