清风_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)')
命令执行失败的原因是没有在本地设置用户名和邮箱,在命令行设置一下即可: git config –global user.email “you@example.com”、
git config –global user.name “Your Nam”, 然然后重新用git commit -m “Initial commit”命令提交。
截图部分是视频内容,是视频部分 上面的命令是我在linux中出现的问题 这个问题怎么解决?
版本管理工具介绍—Git篇
152564 学习 · 230 问题