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.
More on Lost Work, HEAD and History Problems
`fatal: Unable to create '/repo/.git/index.lock': File exists.`BeginnerYou added a file to `.gitignore`, but `git status` still shows it as modified.Beginner`fatal: your current branch 'main' does not have any commits yet`Beginner`Author identity unknown *** Please tell me who you are.` and `fatal: unable to auto-detect email address`Beginner`fatal: ambiguous argument 'HEAD~1': unknown revision or path not in the working tree.`Beginner`fatal: 'main' is already checked out at '/home/dev/app-hotfix'`Intermediate