如何在局域网内的其他电脑的git克隆回购窗口? [英] How to git clone a repo in windows from other pc within the LAN?

查看:236
本文介绍了如何在局域网内的其他电脑的git克隆回购窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的主PC中有这个git repoc:/ xampp / htdocs / * *,其IP地址是192.168.0.6。现在我想从我的主PC上的Vmware播放器上运行的ubuntu-server中克隆这个repo。



我做了

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

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

无法运行。 / p>

 致命:无法创建工作树目录'****':权限被拒绝

我错了什么?
我应该怎么做?

解决方案

要访问回购站,您必须在 192.168.0.6 或者必须与 192.168.0.6 中拥有该文件的域用户相同。



如果您共享 192.168.0.6 目录(例如共享名称 myrepo ) ,您可以使用 // 192.168.0.6/myrepo 来访问它。



如果您使用<在 192.168.0.6 上已知的用户帐户,您可以尝试通过管理共享访问回购:

  // 192.168.0.6/c$/xampp/htdocs / ... 

总是使用正斜杠。

另一种方法是使用SSH访问远程机器。


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.6 or must be the same domain user as the one that owns the file on 192.168.0.6.

If you share the directory on 192.168.0.6 (e.g. with share name myrepo), 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:

//192.168.0.6/c$/xampp/htdocs/...

Always use forward slashes.

Another alternative would be using SSH to access the remote machine.

这篇关于如何在局域网内的其他电脑的git克隆回购窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆