Github 在我提交时使用不同的用户名发送电子邮件通知
Github sends email notification with different username upon my commit
我的操作
我最近创建了一个新分支,做了一些提交(一个简单的 git commit -m
),并在一个不是我创建的 repo 中创建了一个拉取请求。 Github 从 ~/.gitconfig
正确识别了我的 username/email,但发送的电子邮件通知包含错误的用户名。
# 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
的 un 预期的电子邮件,将我的提交归因于 repo 的所有者:
我每次 git push
都会发送这些电子邮件。有人知道这里发生了什么吗?
所以我按照 Justin Howard 的建议联系了 Github 支持。这是他们的回应:
Hi there David,
Thank you for getting back to us with that.
I had a look at our logs for the repository and I do show @yrik
pushing that commit.
We're attributing them to your account as you have your user.email set
correctly but Git is authenticating as the other user. This is
probably because you have that user's credentials cached in Keychain.
Can you follow the steps below and let me know if that helps you to
resolve this?
https://help.github.com/articles/updating-credentials-from-the-osx-keychain
Thanks, Steve
从钥匙串中删除(我的)凭据,并再次登录 git cli with 2fa 停止了错误通知。
因为我禁用了 "my own activity" 的通知,并且我没有查看存储库,所以我现在在推送提交时不再收到通知,而其他正在查看的用户会收到正确的电子邮件通知。
我的操作
我最近创建了一个新分支,做了一些提交(一个简单的 git commit -m
),并在一个不是我创建的 repo 中创建了一个拉取请求。 Github 从 ~/.gitconfig
正确识别了我的 username/email,但发送的电子邮件通知包含错误的用户名。
# 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
的 un 预期的电子邮件,将我的提交归因于 repo 的所有者:
我每次 git push
都会发送这些电子邮件。有人知道这里发生了什么吗?
所以我按照 Justin Howard 的建议联系了 Github 支持。这是他们的回应:
Hi there David,
Thank you for getting back to us with that.
I had a look at our logs for the repository and I do show @yrik pushing that commit.
We're attributing them to your account as you have your user.email set correctly but Git is authenticating as the other user. This is probably because you have that user's credentials cached in Keychain.
Can you follow the steps below and let me know if that helps you to resolve this?
https://help.github.com/articles/updating-credentials-from-the-osx-keychain
Thanks, Steve
从钥匙串中删除(我的)凭据,并再次登录 git cli with 2fa 停止了错误通知。
因为我禁用了 "my own activity" 的通知,并且我没有查看存储库,所以我现在在推送提交时不再收到通知,而其他正在查看的用户会收到正确的电子邮件通知。