git config user.email and user.name

Successfully created project ‘pinyougou-parent’ on GitHub, but initial commit failed: *** Please tell me who you are. Run git config --global user.email “[email protected]” git config --global user.name “Your Name” to set your account’s default identity. Omit --global to set the identity only in this repository. unable to auto-detect email address (got ‘sx@DESKTOP-Q8BNGOQ.(none)’)

以上是错误信息,原因是没有在git中设置你的名字和邮箱!!!

进入git的安装目录,找到 git.bash 文件并打开

输入:
git config --global user.email “你的邮箱账号@example.com”
git config --global user.name “你的名字”

这样就解决了这个问题

你可能感兴趣的:(github)