simply put a dot next to it
git clone [email protected]:user/my-project.git .
From git help clone
:
Cloning into an existing directory is only allowed if the directory is empty.
So make sure the directory is empty (check with ls -a
), otherwise the command will fail.