本文主要是介绍Git commit laravel总是出现需要配置用户名和用户信息的提示信息。,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
错误信息:
$ 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 commit laravel总是出现需要配置用户名和用户信息的提示信息。的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!