Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Github在我提交时使用不同的用户名发送电子邮件通知 我的行为_Git_Github_Git Commit - Fatal编程技术网

Github在我提交时使用不同的用户名发送电子邮件通知 我的行为

Github在我提交时使用不同的用户名发送电子邮件通知 我的行为,git,github,git-commit,Git,Github,Git Commit,我最近创建了一个新分支,进行了一些提交(一个简单的git commit-m),并在一个不是我创建的repo中创建了一个pull请求。Github从~/.gitconfig正确识别我的用户名/电子邮件,但发送包含错误用户名的电子邮件通知 # This is Git's per-user configuration file. [user] # Please adapt and uncomment the following lines: name = ddelange email = 148809

我最近创建了一个新分支,进行了一些提交(一个简单的
git commit-m
),并在一个不是我创建的repo中创建了一个pull请求。Github从
~/.gitconfig
正确识别我的用户名/电子邮件,但发送包含错误用户名的电子邮件通知

# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = ddelange
email = 14880945+ddelange@users.noreply.github.com

结果 如下所示,提交链接到我(正如预期的那样)。运行git show 2f74892


然而 然后,所有相关人员都会收到
notifications@github.com
,将我的承诺归于回购的所有者:



每次我推git时都会发送这些电子邮件。有人知道这里发生了什么吗?

所以我按照贾斯汀·霍华德的建议讨论了Github支持。他们的回答是:

你好,大卫

谢谢你回复我们

我查看了存储库的日志,并显示了@yrik 推动这一承诺

我们将它们归因于您的帐户,因为您已设置了user.email 正确,但Git正在作为其他用户进行身份验证。这是 可能是因为您在Keychain中缓存了该用户的凭据

你能按照下面的步骤,让我知道这是否有助于你 解决这个问题

谢谢,史蒂夫

从密钥链中删除(我的)凭据,并再次登录git cli停止错误通知


由于我禁用了“我自己的活动”的通知,并且我没有在其他情况下查看存储库,因此我现在在推送提交时不再收到通知,其他正在查看的用户也会收到正确的电子邮件通知。

这很奇怪。我会联系GitHub支持部门。