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

查看:512
本文介绍了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帐户相关联.
  • 提交是在独立的存储库中进行的,而不是在fork中进行的.
  • 进行了提交:
    • 在存储库的默认分支(通常是主分支)中
    • 在gh-pages分支中(用于包含Project Pages网站的存储库)
    • The commits were made within the past year.
    • The email address used for the commits is associated with your GitHub account.
    • The commits were made in a standalone repository, not a fork.
    • The commits were made:
      • In the repository's default branch (usually master)
      • In the gh-pages branch (for repositories with Project Pages sites)

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

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

      • 您是存储库上的协作者,或者是拥有存储库的组织的成员.
      • 您已分叉存储库.
      • 您已在存储库中打开拉取请求或问题.
      • 您已为存储库加注星标.
      • You are a collaborator on the repository or are a member of the organization that owns the repository.
      • You have forked the repository.
      • You have opened a pull request or issue in the repository.
      • You have starred the repository.

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

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

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

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