[英]GIT Clone from bare repo with remote URL
We are trying out GIT
to manage our repo. 我们正在尝试使用GIT
来管理我们的仓库。
To start off, we are 4 developers working under the same VPN connected. 首先,我们有4位开发人员在同一个VPN下工作。 We have a central server on which we have created a bare
repo like this: 我们有一台中央服务器,在该服务器上我们创建了一个bare
仓库,如下所示:
git init --bare projectest.git
Later we are trying to clone the bare repo into one on my machine using the below command. 稍后,我们尝试使用以下命令将裸仓库复制到我的计算机上。
git clone git://server/CeRepo/projectest.git/
where 哪里
server is our central machine where the bare repo is created 服务器是我们创建裸仓库的中央机器
CeRepo is a Directory inside the D: Drive of Server CeRepo是服务器D:驱动器内的目录
projectest.git is our empty bare repo. projectest.git是我们的空原始存储库。
When we run this from one of the developers machine 当我们从开发人员机器之一运行此程序时
git clone git://server/CeRepo/projectest.git/
I get this below error: 我得到以下错误:
Cloning into 'projectest'...
fatal: unable to connect to **server**:
server[0: 192.168.13.221]: errno=No error
What can be the issue? 可能是什么问题? Is it some thing related with GIT URL 与GIT URL有关吗
Since you're talking about 既然你在说
CeRepo is a Directory inside the D: Drive of Server CeRepo是服务器D:驱动器内的目录
I assume, you're working on a Win32 machine and CeRepo
is a shared folder on that box that contains the projectest.git
directory. 我假设您正在Win32机器上工作,而CeRepo
是该框中包含projectest.git
目录的共享文件夹。
Then, you'll access the share with 然后,您将使用
git clone //server/CeRepo/projectest.git
Note: there's no git:
before the URL 注意: URL之前没有git:
For the sake of completeness: if your 4 users could access the administrative shares on server
, you could also access the repo with the URL 为了完整起见:如果您的4个用户可以访问server
上的管理共享,则还可以使用URL访问存储库
//server/d$/CeRepo/projectest.git
assuming that the repo is located at 假设回购位于
D:\CeRepo\projectest.git
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.