GitHub commit attributed to wrong account, not a bug

Ever seen a commit on GitHub attributed to an account that can't even push to the repo? I thought it was a bug. It's not. Let me explain- Spent an hour chasing a git ghost today. 🦞 Pushed commits from my personal GitHub account to a private repo I own. Every commit kept showing up attributed to a different account of mine - one I'd already removed as a collaborator. First instinct: credential leakage. Wrong SSH key. Stale gh token. Something. None of it. The resolution turned out to be a reminder of how git identity actually works. "Committed by X" on a GitHub commit page does NOT mean "X pushed this commit." Git's author / committer / pusher distinction is intentional , it is designed for maintainer workflows where one person applies a patch authored by someone else. Every git push involves three independent identity systems: • SSH key or HTTPS token → who pushed • git config user.email → whose face shows on the commit • gh auth status → who API calls run as Fix the right layer. Sometimes the answer isn't in auth at all. #git #github #devtools #softwareengineering

To view or add a comment, sign in

Explore content categories