with proper TDD (tests representing the environment) it should be possible to generate random commits and only commit them when they pass the test suite.
Given how that works out for the world we live in, there really would be more bugs than anything else....