Github:“此电子邮件将不会被用于指责" [英] Github: "This email will not be used for commit blame"

查看:63
本文介绍了Github:“此电子邮件将不会被用于指责"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Github中使用伪造的电子邮件地址?

How can I use a fake email address with Github?

跟随 Github的更改说明,我收到了一个伪造的电子邮件,如user@server.fake,配置为git( git config --global user.email"user@server.fake" ),在我的电子邮件设置页面上注册.

Following Github's since-changed instructions, I had a fake email like user@server.fake configured with git (git config --global user.email "user@server.fake") and registered on my email settings page.

它正在链接我的提交,但是自从上个星期左右以来就没有链接了,并且它的工具提示是(?)":

It was linking my commits, but not since the past week or so, and it has a "(?)" tooltip saying:

这封电子邮件将不会被归咎于

This email will not be used for commit blame

我的真实电子邮件地址已经过验证且可归咎于我,但我想将其保密.

My real email address is verified and blamable, but I want to keep it private.

我该如何使用假冒的东西而仍然受到指责?

How can I use a fake one and still be blamed?

推荐答案

Github看到了与普通和伪造电子邮件地址的许多冲突,并且更改了它们的注册方式.

Github has seen many collisions with generic and fake email addresses and have changed how they are registered.

做两件事,可选做第三件事.

Do two things and an optional third.

1.在电子邮件设置页上,选中该框:

1. On the email settings page check the box:

将我的电子邮件地址设为不公开.

Keep my email address private.

在执行git操作并代表您发送外发电子邮件时,我们将使用username@users.noreply.github.com.

We will use username@users.noreply.github.com when performing git operations and sending outgoing email on your behalf.

2.将电子邮件地址设为不公开" 帮助页面说:使用"username@users.noreply.github.com".

2. The "Keeping your email address private" help page says to use "username@users.noreply.github.com".

将git config更改为username@users.noreply.github.com:

Change git config to username@users.noreply.github.com:

git config --global user.email "username@users.noreply.github.com"

3.可以选择在您的存储库上重写历史记录来更改作者,但要注意警告!

3. Optionally rewrite history on your repos to change the author -- but heed the warnings!

帮助页面说要联系Github补回以前的捐款,但这仅适用于可验证的地址.

This help page says to contact Github to backfill previous contributions, but this only applies to verifiable addresses.

我请Github支持.他们说:

I asked Github support. They said:

正如您所注意到的,我们最近对使用电子邮件进行投诉和计数捐款的方式进行了一些更改.我们看到大量与通用和伪"邮件冲突.电子邮件,这使用户感到困惑.不幸的是,这意味着使用诸如"server.fake"之类的地址进行的提交被提交.将不再链接到您的GitHub帐户.

As you've noticed, we've made some recent changes to how emails are used for commit blame and counting contributions. We were seeing a large number of collisions with generic and "fake" emails, which were confusing users. Unfortunately that means that commits made with an address like "server.fake" will no longer be linked up to your GitHub account.

回填过程仅适用于我们的系统可以接受并用于指责的电子邮件地址,因此很遗憾,这种情况对您无济于事.

The backfilling process only works for email addresses that can be accepted by our system and used for commit blame, so unfortunately that wouldn't help in your situation.

如果要链接旧的提交,则需要重写历史记录才能使用您的 username@users.noreply.github.com 地址.我们对此有一个指南,但如果您愿意的话,可以考虑一下还有其他用户正在使用您的存储库,因为历史记录的重写可能会造成破坏性的活动.

If you want to link up the old commits, it will require rewriting the history to use your username@users.noreply.github.com address. We have a guide on that, though you may want to give it some consideration if there are other users using your repositories, as history rewriting can be a fairly disruptive activity.

这篇关于Github:“此电子邮件将不会被用于指责"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆