Simply put a dot next to it
git clone git@github.com:user/my-project.git .
From git help clone
:
Cloning into an existing directory is only allowed if the directory is empty.
Make sure the directory is empty (check with ls -a
), otherwise the command will fail.