Git and GitHub for Product Managers
Secrets Are Hard to Remove
This is the one mistake with consequences outside your team, and the reason it matters is counterintuitive: deleting it doesn't fix it.
What People Assume | What's Actually True |
|---|---|
Delete the line and it's gone | It's still in the history, permanently, by design |
Nobody will notice | Automated scanners find exposed keys within minutes |
It was a private repo | Private repos get forked, cloned and shared |
We can clean it up later | The correct response is to rotate the key immediately |
If It Happens, Say So Immediately
If you or anyone on your team commits a key or a password, the response is to tell someone and rotate the credential — not to quietly delete it and hope. The embarrassment of reporting it is tiny compared with the alternative, and every engineer has done it at least once.