Reset the repo to a clean state.