Skip to main content
我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们
GitHub AE 目前是有限发行版。请联系我们的销售团队以了解更多信息。

Why are my contributions not showing up on my profile?

Learn common reasons that contributions may be missing from your contributions graph.

About your contribution graph

Your profile contributions graph is a record of contributions you've made to repositories owned by 您的企业. Contributions are timestamped according to Coordinated Universal Time (UTC) rather than your local time zone. Contributions are only counted if they meet certain criteria. In some cases, we may need to rebuild your graph in order for contributions to appear.

If you are part of an organization that uses SAML single sign-on (SSO), you won’t be able to see contribution activity from the organization on your profile if you do not have an active SSO session. People viewing your profile from outside your organization will see anonymized contribution activity of your contribution activity for your organization.

Contributions that are counted

Issues, pull requests and discussions

Issues, pull requests and discussions will appear on your contribution graph if they were opened in a standalone repository, not a fork.

Commits

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

  • The email address used for the commits is associated with your account on 您的企业.
  • The commits were made in a standalone repository, not a fork.
  • The commits were made:
    • In the repository's default branch
    • In the gh-pages branch (for repositories with project sites)

For more information on project sites, see "About GitHub Pages."

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.

Common reasons that contributions are not counted

注:

  • 要显示在您的个人资料贡献图中,合作提交必须符合与只有一个作者的提交相同的条件。
  • 在变基提交时,提交的原作者和提交的变基者(无论是在命令行还是 您的企业 上)都会获得贡献积分。

Commit was made less than 24 hours ago

After making a commit that meets the requirements to count as a contribution, you may need to wait for up to 24 hours to see the contribution appear on your contributions graph.

Your local Git commit email isn't connected to your account

Commits must be made with an email address that is connected to your account on 您的企业 in order to appear on your contributions graph.

You can check the email address used for a commit by adding .patch to the end of a commit URL, e.g. https://github.com/octocat/octocat.github.io/commit/67c0afc1da354d8571f51b6f0af8f2794117fd10.patch:

From 67c0afc1da354d8571f51b6f0af8f2794117fd10 Mon Sep 17 00:00:00 2001
From: The Octocat <octocat@nowhere.com>
Date: Sun, 27 Apr 2014 15:36:39 +0530
Subject: [PATCH] updated index for better welcome message

The email address in the From: field is the address that was set in the local git config settings. In this example, the email address used for the commit is octocat@nowhere.com.

If the email address used for the commit is not connected to your account on 您的企业, change the email address used to author commits in Git. For more information, see "Setting your commit email address."

Warning: Generic email addresses, such as jane@computer.local, cannot be added to GitHub accounts. If you use such an email for your commits, the commits will not be linked to your GitHub profile and will not show up in your contribution graph.

Commit was not made in the default or gh-pages branch

Commits are only counted if they are made in the default branch or the gh-pages branch (for repositories with project sites). For more information, see "About GitHub Pages."

If your commits are in a non-default or non-gh-pages branch and you'd like them to count toward your contributions, you will need to do one of the following:

Warning: Changing the default branch of the repository will change it for all repository collaborators. Only do this if you want the new branch to become the base against which all future pull requests and commits will be made.

Commit was made in a fork

Commits made in a fork will not count toward your contributions. To make them count, you must do one of the following:

  • Open a pull request to have your changes merged into the parent repository.
  • To detach the fork and turn it into a standalone repository on 您的企业, contact 您的企业所有者. If the fork has forks of its own, let 您的企业所有者 know if the forks should move with your repository into a new network or remain in the current network. For more information, see "About forks."

Further reading