【发布时间】:2022-11-19 13:53:09
【问题描述】:
当我最近向我的 repo 添加一些代码时,我注意到我的贡献没有显示在我的贡献图表上。当我打开 repo 时,我注意到我的名字在提交中出现了两次。 (见下图。) 这个特定的回购协议似乎认为我既是回购协议的发起人,也是从分支机构处理回购协议的人。我没有克隆这个 repo,所以我很困惑。有没有办法让我重新成为这个回购协议的主要贡献者?
【问题讨论】:
标签: github
当我最近向我的 repo 添加一些代码时,我注意到我的贡献没有显示在我的贡献图表上。当我打开 repo 时,我注意到我的名字在提交中出现了两次。 (见下图。) 这个特定的回购协议似乎认为我既是回购协议的发起人,也是从分支机构处理回购协议的人。我没有克隆这个 repo,所以我很困惑。有没有办法让我重新成为这个回购协议的主要贡献者?
【问题讨论】:
标签: github
看着git log --format=fuller...
commit b51b2bdab2435ad2711893f0e606b493640d5d1e (HEAD -> main, origin/main, origin/HEAD)
Author: Andrew Rea <andrewrea@Andrews-Air.hsd1.or.comcast.net>
AuthorDate: Fri Nov 18 12:00:15 2022 -0800
Commit: Andrew Rea <andrewrea@Andrews-Air.hsd1.or.comcast.net>
CommitDate: Fri Nov 18 12:00:15 2022 -0800
Adding paths to incorporate into the top left button of the game
...这些提交来自andrewrea@Andrews-Air.hsd1.or.comcast.net。您的 Github 存储库与 andrew.s.rea@gmail.com 关联。
您可以 add the email addresses to your Github account,但这看起来不像是真实的电子邮件地址。它看起来像是 Git 所做的默认猜测。
相反,configure Git to use your correct email address:git config --global user.email andrew.s.rea@gmail.com。并可选择rewrite those commits to use the right email address。
【讨论】: