Just using a random commit name like 'minor bug fix', 'updated version' for these kind of commits will save a lot of headaches like this.
One can do better by adding random lines/ logs in lot of files and sneakily remove password from one of them and then give a random commit name.
But then it all boils down to your mindset at that particular moment when you are commuting.