首页 > 解决方案 > 将我的项目提交到 github 时发生了一些错误

问题描述

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

*** 请告诉我你是谁。

git config --global user.email "you@example.com" git config --global user.name "你的名字"

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

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

如何解决这个问题?

标签: gitgithub

解决方案


对于这个错误,你只需要执行他们显示的命令

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

这将在 ~/.gitconfig 中设置你的名字。


推荐阅读