Missing profile contributions from public repository commits on main (Repositories) #191466
-
🏷️ Discussion TypeBug 💬 Feature/Topic AreaProfile BodyMy profile contribution graph is missing a large number of commits from my public repository, even though I added and verified the relevant commit email addresses more than 24 hours ago. A clear example date is: GitHub username: NoBadDays ( https://github.com/NoBadDays ) What I already checked: The commits are on the default branch One of the emails I used to commit was missing from my account, but I've added and verified it ~48h ago I have ~300 commits on https://github.com/NoBadDays/erasmus.works in the last ~month, but on my profile it shows I only have ~100 commits |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
hey @NoBadDays Since you've already verified the emails and waited 48 hours, the most likely remaining cause is a Git identity mismatch between your local environment and your GitHub account settings. 1. The "Author Email" CheckRun this command inside your erasmus.works local directory to see exactly which emails are attached to your March 14th commits: git log --format='%ae' --since="2026-03-13" --until="2026-03-15" | sort -u Compare the output strictly against the emails listed in your GitHub Email Settings. If an email appears in the logs that is not on your GitHub list (even by one character), those commits will never show on your graph. 2. The "Private Email" ConflictCheck if you have "Keep my email addresses private" enabled in your GitHub settings.
3. Force a Graph RebuildSometimes the contribution cache gets stuck. You can force a "pulse" to the graph by:
If there is a mismatch:If you find that the March 14th commits used an incorrect email, you can fix your local setup for future commits: git config --global user.email "your-verified-email@example.com" Note: Retroactively fixing the graph for past commits requires a git filter-repo or a forced push, which is risky if you have collaborators. pls upvote |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Hey there! 👋 If your contribution graph isn’t showing what you expect, like missing commits, gray squares, or changes after merging, we’ve got a full guide that breaks down how it works and what counts as a contribution: 👉 Understanding Your Contribution Graph 🟩 It explains which activities turn squares green, how private contributions work, and the most common reasons contributions might not appear, like branch or email mismatches. You can use it as a reference to check what might be happening with your graph! If everything looks correct after reviewing the guide and the issue persists, we recommend opening a ticket with GitHub Support so the team can take a closer look at your account. Hope it helps! |
Beta Was this translation helpful? Give feedback.
-
|
Hello @NoBadDays! Since you are the sole contributor and are comfortable rewriting history, we can fix this. The reason your graph isn't updating is that turning off "Keep my email addresses private" does not retroactively change the metadata of the commits you already pushed. Those 300+ commits are still "signed" with the old privacy-protected email or a mismatched ID. To fix the graph once and for all, you need to use a script to rewrite the author information for your entire repository. Step 1: Run the ScriptOpen your terminal in your local git filter-branch --env-filter '
OLD_EMAIL="your-old-hidden-email@users.noreply.github.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-verified-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_AUTHOR_NAME="$CORRECT_NAME"
export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL"
fi
' --tag-name-filter cat -- --branches --tags(Note: If you aren't sure what the "OLD_EMAIL" was, run Step 2: Force Push to GitHubOnce the script finishes, your local history is fixed. Now you must push it to GitHub: git push --force --allWhy this works:GitHub's contribution graph is built by scanning the Author Email header of every commit. By rewriting the history, you are essentially "signing" those old commits with your newly verified email. Once you force push, GitHub will see these as "newly discovered" valid contributions and your green squares should appear almost instantly. Let me know if you hit any snags with the script! |
Beta Was this translation helpful? Give feedback.
-
Why your commits aren’t appearing on the contribution graphGitHub counts a commit toward your profile only when:
If any of those conditions fail, the commit is ignored for the graph, even though it remains visible in the repository history. Below is a step‑by‑step checklist you can run to locate the mismatch and fix it, followed with the exact commands you’ll need. 1️⃣ Verify the email used in the problematic commits# Clone the repo (if you haven’t already)
git clone https://github.com/NoBadDays/erasmus.works.git
cd erasmus.works
# Show the author email for every commit on `main`
git log --pretty=format:"%h %ae %s" mainLook for the commits around 14 Mar 2026 (or any date you know is missing).
2️⃣ Confirm the email is verified on GitHub
3️⃣ Check for common exclusion reasons
|
Beta Was this translation helpful? Give feedback.
-
|
@NoBadDays Just a heads-up: the standard checklists mentioned above won't retroactively fix those 300 commits because the 'Private Email' block was active when they were first pushed. Since you're the sole contributor, that |
Beta Was this translation helpful? Give feedback.
-
|
This might not help others, but I changed my GitHub Username from NoBadDays to something else, and then when I checked my profile it was fixed. |
Beta Was this translation helpful? Give feedback.

This might not help others, but I changed my GitHub Username from NoBadDays to something else, and then when I checked my profile it was fixed.
I'm not sure if that was what fixed it, but my contributions show now