added --remove-git option