Alex Rivera | Logout

How to git clone a repo in windows from other pc within the LAN?

Asked 2011-03-04T22:55:24.313
48

I have this git repo "c:/xampp/htdocs/**" in my main PC and its IP address is 192.168.0.6. Now I want to git clone this repo from ubuntu-server which running on a Vmware Player in my main PC.

I did

 git clone \\192.168.0.6\c:\xampp\htdocs\****

and

 git clone //192.168.0.6/c:/xampp/htdocs/****

from ubuntu-server and neither worked.

fatal: could not create work tree dir '****'.: Permission denied

What did I wrong? what should I do?

Edit
Report

1 Answer

3

Using explorer (smb) to mount the remote repository as a network share is the easiest way. I'm not entirely sure, but I think you paths might be wrong. Try file:///192.168.0.6\c:\xampp... instead.

There are two things that might have gone wrong for you:

  • You don't have read permission on the remote repository
  • You don't have write permission in the location you want to create your repository ( the current working directory or the directory you specify as second argument to git clone)

And also check if your samba server works for normal file access.

answered 2011-03-04T23:13:46.307

Your Answer