Search code examples
gitgit-clone

Git Clone - Can't clone remote repository


I'm trying to clone a project that is remotly located to my local machine.

So:

1) I navigate to the local folder where I want to have my files.

2) I connect to ssh on the remote machine: ssh [email protected]/devproject.git/

3) I execute the git clone command: git clone ssh://[email protected]/devproject.git/

I get: fatal: destination path 'devproject' already exists and is not an empty directory.

I don't have devproject on my local machine. I've checked and re-checked.

What am I missing ?

Thanks.


Solution

  • Any commands you type after sshing to the remote machine are executed on that machine, not on your local machine. Cut out step #2.