Rule #1: Never commit code you haven't run at least once, no matter how small or simple.
Rule #2: Have a plan, and execute that plan, for verifying changes and fixes when they go into production.