如上操作上传项目到GitHub,报以下错误:
Successfully created project 'MyApplication' on GitHub,
but initial commit failed:
unable to auto-detect email address (got 'Administrator@KD-ZOUJQ-PC.(none)')
最关键的地方:unable to auto-detect email address (got ‘Administrator@KD-ZOUJQ-PC.(none)’)
不能自动检测邮箱地址
所以在命令行 执行以下命令 设置邮箱 , 即可:
git config --global user.email "自己的邮箱"