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?
To access the repo, you must either share it on
192.168.0.6or must be the same domain user as the one that owns the file on192.168.0.6.If you share the directory on
192.168.0.6(e.g. with share namemyrepo), you access it with//192.168.0.6/myrepo.If you are logged in on your box with a user accout that is known on
192.168.0.6, you could try accessing the repo through the administrative shares:Always use forward slashes.
Another alternative would be using SSH to access the remote machine.