本文介绍了GIT错误: - 期望提交者电子邮件'',但发现'[email protected]'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 预期提交者电子邮件'',但发现'karan @ xyz。 com'

我已经试过了:


  1. 在.gitconfig文件中设置使用属性。

  2. 尝试使用git push制作同一个存储库的不同克隆。完整的系统格式化后。

但没有任何工作。我还能做些什么来解决它。

解决方案

这看起来不像git限制,但应该是某种预先接收远程端的钩子(你推送到的Git仓库服务/服务器)

该钩子似乎解析提交并检查提交者电子邮件根据拒绝 [email protected]

的具体标准,您应该与远程端管理员核实以查看发生了什么。






确认这是服务器端的问题:


Git push is getting rejected with the following error message:

expected committer email '' but found '[email protected]'

I have already tried:

  1. setting use properties in .gitconfig file.
  2. trying git push making different clones of same repository.
  3. setting up whole system all together after formatting it.

But none has worked. What else can I do to resolve it.

解决方案

This doesn't seem like a git limitation, but should be some kind of pre-receive hook on the remote side (the Git repository hosting service/server to which you are pushing to)

That hook seems to parse the commits and check the committer email against a specific criteria which rejects [email protected].
You should check with the remote side administrator to see what is going on.


The OP Karan Singla confirms in the comments it was an issue at the server side:

这篇关于GIT错误: - 期望提交者电子邮件'',但发现'[email protected]'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-04 20:28