将项目提交到github时发生了一些错误

问题描述 投票:-3回答:1

我是github的新手。我试图提交我的项目。但是在我的cmd上发生了以下错误。

***请告诉我你是谁。

git config --global user.email“[email protected]”git config --global user.name“你的名字”

设置帐户的默认身份。省略--global仅在此存储库中设置标识。

致命:无法自动检测电子邮件地址(得到'Hema @ Hema-PC。(无)')

怎么能解决这个问题?

git github
1个回答
0
投票

对于此错误,您只需执行它们显示的命令

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

这将在〜/ .gitconfig中设置您的名字。

© www.soinside.com 2019 - 2024. All rights reserved.