GitHub 贡献图如何计算提交? [英] How are commits counted by the GitHub contributions graph?

查看:57
本文介绍了GitHub 贡献图如何计算提交?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的个人资料中 GitHub 贡献图表中的贡献是如何计算的?(带绿点的那个.)是否计算提交是否取决于提交中的用户名或与之关联的电子邮件?

How are contributions in the GitHub Contributions graph on my profile counted? (The one with the green dots.) Does whether a commit is counted or not depend on the username in the commit, or the email associated with it?

请提供详细信息.有什么办法可以将提交与我的用户名相关联,但更改我的电子邮件后仍然出现绿点?

Please provide details. Is there any way I can associate commits with my username but change my email and still have the green dots appear?

推荐答案

GitHub 在其网站上有一篇关于此的文章.请参阅为什么我的贡献没有显示在我的个人资料中? 关于提交,文章说:

GitHub has an article about this on their site. See Why are my contributions not showing up on my profile? Regarding commits, the article says:

如果提交满足所有条件,则提交将显示在您的贡献图表中以下条件:

Commits

Commits will appear on your contributions graph if they meet all of the following conditions:

  • 提交是在过去一年内完成的.
  • 用于提交的电子邮件地址与您的 GitHub 帐户相关联.
  • 提交是在一个独立的存储库中进行的,而不是一个分支.
  • 提交如下:
    • 在存储库的默认分支(通常是 master)中
    • 在 gh-pages 分支中(用于包含 Project Pages 站点的存储库)

    此外,以下至少一项必须为真:

    In addition, at least one of the following must be true:

    • 您是代码库的协作者或拥有代码库的组织的成员.
    • 您已分叉存储库.
    • 您已在存储库中打开拉取请求或问题.
    • 您已为存储库加注星标.

    您可以从电子邮件设置页面将多个电子邮件地址与您的 GitHub 帐户相关联.

    You can associate multiple email addresses with your GitHub account from your email settings page.

    这篇关于GitHub 贡献图如何计算提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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