clone and remove existing git repository

C++
git rm -rf git
Source

Also in C++: