git - GitHub 贡献图如何计算提交?

标签 git github

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

请提供详细信息。有什么方法可以将提交与我的用户名相关联,但更改我的电子邮件并仍然显示绿点?

最佳答案

GitHub 在他们的网站上有一篇关于此的文章。见 Why are my contributions not showing up on my profile?关于提交,文章说:

Commits

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

  • 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.


您可以通过您的 email settings page 将多个电子邮件地址与您的 GitHub 帐户相关联。 .

关于git - GitHub 贡献图如何计算提交?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29296681/

相关文章:

git - 更改 NetBeans 使用的 Git 远程密码

Github 存储库不使用 gh cli 克隆

github - 如何在Github存储库中的特定分支中搜索特定代码?

javascript - 如何在没有 git 的情况下创建 react 应用程序(跳过 git)?

git - 如何指定 Git 配置路径

Git没有执行接收后 Hook

video - 如何在 GitHub wiki 页面上嵌入 YouTube 视频?

c++ - 如何在 Windows 上构建 git?

linux - git 服务器和客户端在 linux 中的设置

git - 简化 git 别名中的 Xargs 表达式