Laravel Forge 无法部署"致命:不允许空的 ident name (对于 <name@name.localdomain>)



我正试图部署到laraval forge,但每次我都会收到以下错误:

Thu May 20 08:00:39 UTC 2021
From bitbucket.org:myName/repo
* branch            main       -> FETCH_HEAD
*** 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 <name@name.localdomain>) not allowed

该代码成功部署到BitBucket,问题是当Laravel Forge尝试部署它时。我已经在终端中检查了我的git配置,user.name和user.email都设置正确。任何建议都很好——提前谢谢!

编辑:忘记添加,它之前已经成功部署。我不确定是什么原因导致它坏了。我曾尝试恢复到以前成功部署的Bitbucket提交,但没有成功,仍然出现错误。

我收到了类似的消息(从Laravel Forge部署(:

*** 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 <wwwsitecom@servername.localdomain>) not allowed

我运行

git config --global --list 

并按预期显示了我的姓名和电子邮件。

对我来说,关键是

git config --global --list 

git config --list 

显示电子邮件地址";wwwsitecom@servername.localdomain&";。

然后我在服务器上的站点文件夹中运行的是:

git config user.email "wwwsitecom@servername.localdomain"
git config user.name "wwwsitecom"

(其中wwwsitecom@servername.localdomain是错误消息中显示的确切电子邮件地址-出于安全原因在此处更改(,这就成功了,使部署再次工作。

因此,无论出于何种原因,与电子邮件地址相关的名称";wwwsitecom@servername.localdomain"变为空白或以某种方式被删除(但仍然没有发现这是怎么发生的(。

希望这能帮助其他人或未来的我。

相关内容

最新更新