Home > Back-end >  Git repository is not cloning from remote server in PhpStorm
Git repository is not cloning from remote server in PhpStorm

Time:01-27

I have my site working on server. I installed PhpStorm, set up FTP and SSH with my remote server and it works fine:

enter image description here

I go to Git > Clone..., enter URL of repository
[email protected]:/loudcar.com.ua/www/.git
and enter FTP password.

But cloning is not working and I get an error "does not appear to be a git repository".

I expected repository cloned to my local server.

CodePudding user response:

Based on the image the URL must be either

[email protected]:loudcar.com.ua/www/

or

[email protected]:/home/a50watt/loudcar.com.ua/www/

CodePudding user response:

In your local directory where you want to clone your repository, open Git bash or command prompt.

Then run the below commands for creating local repository.

git init
git clone <Your Remote Repository URL>

After pressing enter, Git will ask for authentication on a new pop up screen. Enter your credentials.

If logged in successfully, your remote repository will be cloned on your current directory in which Git bash/cmd is running.

  • Related