Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Select Topic Area

Question

Body

Hi there!
Yestarday i noticed that my contribution history is almost empty (both for private and public repositories).
I attribute this to my Personal Acces Token that got expired recently. I have re-authenticated through Github CLI, but contribution history is still empty.

image
You must be logged in to vote

Hi, @ivansmialko quick help request and steps I tried so far.

Yesterday I noticed my contribution graph is almost empty (private and public repos). My Personal Access Token expired recently; I re-authenticated using the GitHub CLI, but the graph still shows no contributions. Has anyone seen this before or can suggest what I should check next?

Short explanation (what likely happened)
Expired PAT or re-authenticating does not remove past contributions. The graph counts commits, PRs, issues, and merges that are tied to your GitHub account (usually via the commit email or actions like PR merges), not your CLI token.

The usual causes for missing contributions are: commits pushed with an email …

Replies: 2 comments · 1 reply

Comment options

Hi, @ivansmialko quick help request and steps I tried so far.

Yesterday I noticed my contribution graph is almost empty (private and public repos). My Personal Access Token expired recently; I re-authenticated using the GitHub CLI, but the graph still shows no contributions. Has anyone seen this before or can suggest what I should check next?

Short explanation (what likely happened)
Expired PAT or re-authenticating does not remove past contributions. The graph counts commits, PRs, issues, and merges that are tied to your GitHub account (usually via the commit email or actions like PR merges), not your CLI token.

The usual causes for missing contributions are: commits pushed with an email that isn’t the one verified on your GitHub account; commits on non-default branches or branches that aren’t merged; private-contribution display settings; or a short delay while GitHub recalculates the contribution graph.

Quick checklist you can try right now
Verify the email your local Git is using:

git config user.email

See which emails appear in your recent commits:

git log --pretty=format:'%an <%ae>' | sort | uniq -c

Confirm that email is added and verified in your GitHub account settings (Emails section).

Make sure the commits are on the default branch (or were merged to it) or that PRs were merged — those are the ones counted.

Check your profile contribution settings and ensure “Include private contributions on my profile” is enabled.

Wait a bit — sometimes the contribution graph takes minutes to hours to update after fixes.

Fixes if commits use the wrong email
Single recent commit: update author and push

git commit --amend --author="Your Name correct@example.com" --no-edit

git push --force

Many commits: rewrite history (use care; coordinate with collaborators)

Recommended tool: git filter-repo (or git filter-branch / BFG). Rewriting history requires force-pushing and informing collaborators.

Notes and warnings
Rewriting published history is disruptive. Only rewrite when you understand the consequences and have coordinated with anyone else using the repo.

PAT expiration itself wouldn’t clear past contributions — fixing the commit email or merge state usually resolves it.

If you want, paste the output of:

git config user.email

one line from git log showing a commit (author and email) and I’ll suggest an exact command to fix that commit or the strategy for a larger rewrite.

You must be logged in to vote
1 reply
@ivansmialko
Comment options

Hello. Thank you, for the response!
I have reviewed my email settings, and all the commits that are "invisible" on my repos. It seems, i have made commits with my corporate email, and when we created accounts for GitHub copilot the ownership had transferred to my corporate account. I will try your method with rewriting history.

Thank you a lot!

Answer selected by ivansmialko
Comment options

Very easy:

  1. Go to GitHub → Settings.
  2. In the left sidebar, open Public profile (or use the direct link: https://github.com/settings/profile).
  3. Under the “Contributions & activity” section, enable the checkbox “Include private contributions on my profile”
Contributions   activity
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Profile Showcase your work on GitHub with a personalized profile, bio, contributions and pinned repositories Question Ask and answer questions about GitHub features and usage
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.