简体   繁体   中英

Unable to git clone from one folder to another in windows

I have a created a bare repository in C drive and I'm trying to clone the same in D drive by issuing the below command (in windows machine)

git clone Username@Ip_address_of_my_machine:C:/path_to_the_git_repo

but I'm unable clone it as it comes up with the error

"Cloning into 'git_repos'...
ssh: connect to host 192.168.0.5 port 22: Connection refused
fatal: Could not read from remote    repository.
 Please make sure you have the correct access rights and the repository exists."

I have installed CopSSH and set up id_rsa.pub keys and authorized key. as mentioned in on github .

Is this problem is because of the dynamic IP address of my PC which is getting from the service provider? or what else is missing here?

I have tried the same in my office PC with same settings and installation, it works well with above git clone command, The difference is office PC has static IP but @home it is dynamic IP

Skip the ssh part as this is on the same machine. So from where you want the project to be in the D drive:

git clone C:/path_to_the_git_repo

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM