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

来源:3-6 Linux环境下第一次提交项目

清风_0006

2017-12-06 12:02

[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)')


写回答 关注

2回答

  • 慕姐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中出现的问题 这个问题怎么解决?

版本管理工具介绍—Git篇

本课程主要讲解了git在各平台的安装和基本使用,来学习Git吧

152564 学习 · 230 问题

查看课程