clean git repo before checkout