idea中GitHub报错:but initial commit failed: *** Please tell me who you are.

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 ‘[email protected](none)’)

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

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

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

这样就解决了这个问题

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2021-07-20
  • 2022-02-13
  • 2022-12-23
  • 2021-10-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
相关资源
相似解决方案