Remove all previous commit directories before cloning.