您的位置:首页 > 编程语言 > PHP开发

Git commit laravel总是出现需要配置用户名和用户信息的提示信息。

2018-02-24 22:43 453 查看
错误信息:
$ git commit -m "Basic user profile editing"
*** 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
解决方案:

一方面,查看环境变量,SET Home查看Home的值,然后来到Home的目录,配置全局的邮箱和密码。
git config --global user.name "youname"
git config --global user.email "youeamil@email.com"最后可以通过 git config -l 这个命令查看已配置的用户名和邮箱信息在本项目的git的config文件下,添加以下三行:
[user]     email = yourname@example.com     name = yourname
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  git
相关文章推荐