Paula Diniz
Paula Diniz

Reputation: 68

Commits simply not showing on GitHub graphic?

So since I started working on this new project, my commits stopped showing up on GitHub graphic, no green tiles for me. I worked on a personal project and I was able to see my commits on the graphic, but when it comes to the other project, nothing happens.

I already read the documentation and found nothing, my friends from work are not experiencing the same problem with the repository, so I don't know what else could be. I even deleted the project from my machine and cloned again, still nothing changes.

Yes, I can see my commits with git log, they're all there.

Upvotes: 1

Views: 1031

Answers (1)

GoodDeeds
GoodDeeds

Reputation: 8507

You mention that your commits are on a different branch other than the default branch. From GitHub's documentation:

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

So, only commits from your default branch or a gh-pages branch will appear in the graph. If you are working on a different branch, and later merge to the default branch, all the commits you merged will then be visible on the contribution graph as well.

Upvotes: 4

Related Questions