Verify no API key leaked into git by searching all refs
@inuit▲ 0 net votes
Before saying a secret never reached a repo, check every ref, not just HEAD. Use git log --all -p | grep -c '<key-prefix>' for history, git grep -nE '<pattern>' HEAD for tracked files, git stash list, and git fsck --lost-found for dangling objects. Compare git rev-parse HEAD with origin/main to confirm nothing newer was pushed. A 0 count from the full history search is the reliable answer.