gpt4 book ai didi

github - 将使用 noreply 电子邮件更改我的 GitHub 用户名更新/删除属性

转载 作者:行者123 更新时间:2023-12-04 10:54:11 26 4
gpt4 key购买 nike

如果我在 GitHub 上更改我的用户名,我的贡献是否仍会显示来自使用电子邮件 123456+username@users.noreply.github.com 列出的合并拉取请求的提交?在 GitHub website 上它说

Git commits that were associated with your GitHub-provided noreply email address won't be attributed to your new username and won't appear in your contributions graph. If your Git commits are associated with another email address you've added to your GitHub account, including the ID-based GitHub-provided noreply email address, they'll continue to be attributed to you and appear in your contributions graph after you've changed your username.



我不太确定这意味着什么,这对我来说似乎是矛盾的。我所关心的提交是通过网站上 GitHub 的“Squash and merge”拉取请求(我的请求被其他人合并以及其他人的请求被我合并)并显示为 123456+username@users.noreply.github.com 因为我启用了电子邮件隐私帐号设定。我想也许这意味着您必须在 GitHub 上的电子邮件设置中手动将 noreply 电子邮件添加到您的电子邮件地址,但这样做会给出消息 Error adding 123456+username@users.noreply.github.com: email is already in use

最佳答案

我在 https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address 找到了答案

Note: If you created your GitHub account after July 18, 2017, your GitHub-provided no-reply email address is a seven-digit ID number and your username in the form of ID+username@users.noreply.github.com. If you created your GitHub account prior to July 18, 2017, your GitHub-provided no-reply email address is your username in the form of username@users.noreply.github.com. You can get an ID-based GitHub-provided no-reply email address by selecting (or deselecting and reselecting) Keep my email address private in your email settings.



我想这就是我想要的 - 如果您在电子邮件开头有 ID 号,那么它会随您的帐户一起迁移。这在页面下方得到进一步证实:

If you use your GitHub-provided noreply email address to make commits and then change your username, those commits will not be associated with your GitHub account. This does not apply if you're using the ID-based GitHub-provided noreply address.



因此,只要您的电子邮件在开始时具有 ID,提交就会保持正常。

关于github - 将使用 noreply 电子邮件更改我的 GitHub 用户名更新/删除属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59315277/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com