Git clone into an existing folder

Git clone into an existing folder:

This can be done by cloning to a new directory, then moving the .git directory into your existing directory.

git clone https://link.git temp-directory
mv temp-directory/.git existing-directory/.git
rm -r temp-directory