为了账号安全,请及时绑定邮箱和手机立即绑定

输入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)')


正在回答

2 回答

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

0 回复 有任何疑惑可以回复我~

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

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
版本管理工具介绍—Git篇
  • 参与学习       152754    人
  • 解答问题       221    个

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

进入课程

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

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信