问答详情
源自:3-6 Linux环境下第一次提交项目

输入get commit后出现下面提示这个什么怎么解决?

[root@localhost test]# git commit

*** 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: unable to auto-detect email address (got 'root@localhost.(none)')


提问者:清风_0006 2017-12-06 12:02

个回答

  • 慕姐2536762
    2018-03-13 11:01:17

    命令执行失败的原因是没有在本地设置用户名和邮箱,在命令行设置一下即可: git config –global user.email “you@example.com”、 
    git config –global user.name “Your Nam”, 然然后重新用git commit -m “Initial commit”命令提交。

  • 清风_0006
    2017-12-06 12:04:39

    截图部分是视频内容,是视频部分  上面的命令是我在linux中出现的问题 这个问题怎么解决?