简体   繁体   English

在Windows上设置共享的远程git仓库的最快捷最简单的方法是什么?

[英]What is the quickest and simplest way of setting up a shared, remote git repo on Windows?

I have just joined a team of two, and am in danger of having to being asked to use SourceSafe if I can't establish a git repo very quickly. 我刚刚加入了两个团队,如果我不能很快建立一个git repo,就有被要求使用SourceSafe的危险。 I would like to avoid any web server etc. setup and just use a shared folder, but suggestions along this line haven't been very clear and have not worked. 我想避免任何Web服务器等设置,只是使用共享文件夹,但沿着这条线的建议不是很清楚,没有工作。

First, I tried 'git init --bare' in the shared folder, and this seemed to work, but I cannot clone this repo to a local repo as I get told no repo exists there. 首先,我在共享文件夹中尝试了'git init --bare',这似乎有效,但是我无法将这个repo克隆到本地仓库,因为我被告知那里没有repo。

I would appreciate if somebody could give me clear instruction how to achieve this, please. 如果有人能给我明确指示如何实现这一目标,我将不胜感激。

It shouldn't cause any problem to share a repo this way, that's the exact setup we have here. 以这种方式共享回购不应该导致任何问题,这就是我们在这里的确切设置。

Be sure to specify slashes when giving repo location, and that the share has been accessed in the Explorer in case it requires authentication. 确保在提供repo位置时指定斜杠,并且在需要身份验证的情况下已在Explorer中访问该共享。

git clone //server/share/path/to/repo.git

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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