Commit your code as if it could be accidentally deployed
The one simple trick to do a better job as a programmer is to git commit as if your commit could be accidentally deployed (and it wouldn’t break the production environment...)
Source: matthiasnoback.nl