git clone without folder

C++
git clone URLofRepo .
Source

Also in C++: