【问题标题】:Git Commit not working in my Command promptGit Commit 在我的命令提示符下不起作用
【发布时间】:2017-02-09 13:21:44
【问题描述】:

一切都很顺利,但是当我输入“git commit -m 'First Commit'”时它不起作用并显示此错误

developer@developer-PC MINGW64 ~/Desktop/ajax (master)
$ git commit -am 'gjhgj'

*** Please tell me who you are.

Run

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

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <(null)>) not allowed

请有人在这方面提供帮助

【问题讨论】:

    标签: git github deployment


    【解决方案1】:

    您应该通过运行设置您的电子邮件和姓名,如错误消息中指定的那样

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

    如果您只想为当前项目设置这些信息,则可以省略 --global。

    【讨论】:

      猜你喜欢
      • 2012-11-15
      • 2018-06-20
      • 2019-01-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-04
      • 2011-01-23
      • 2010-12-13
      相关资源
      最近更新 更多