Remove git directories before incremental caching