Git and GitHub for Product Managers
Five Things to Never Do
Commit directly to main
It bypasses review entirely. Even if the change is correct, it breaks the team's process and removes the record of anyone having agreed to it. Always branch and open a PR, however small the change.
Merge your own PR without review
The point of review isn't distrust — it's that a second person catches things the author can't see. A PM merging their own change signals that the process is optional, which erodes it for everyone.
Edit a code file you don't understand
Text in a code file can be referenced from places you can't see. Changing a string that looks like a label can break a test, a translation lookup, or an integration. If it isn't documentation, ask.
Close someone else's issue or PR
It reads as a judgement on their work and it loses the context. If something looks stale, comment asking whether it's still live and let the author close it.
Put anything secret in a repository
API keys, passwords, customer data, access tokens. This is the one with consequences beyond annoyance, and the next section covers why it's harder to undo than you'd think.