Interview Prep/Git & GitHub/Lost Work, HEAD and History Problems

Your commits do not show on your GitHub profile contribution graph.

IntermediateTroubleshootingLost Work, HEAD and History Problems
Answer

Likely causes → The commit email is not linked to your GitHub account, commits are on a fork's non-default branch, the repo is private (and private contributions are hidden), or it was not merged to the default branch.

Diagnose →

git log --format='%h %ae %an' -5
git config user.email

Fix → Add the email under GitHub Settings → Emails, or change the config (git config user.email) and keep user.useConfigOnly true to avoid guessing. For privacy use the [email protected] address.

Prevent → Per-directory identities with includeIf, and verify the email after setting up a new laptop.

All Git & GitHub questions Roadmap: Git & GitHub

More on Lost Work, HEAD and History Problems