0

我有 windows server 2003 作为我的操作系统。

我正在使用 WAMP 进行 php 开发。

我正在使用 Eclipse Helios for PHP Developers 进行开发。

我已经安装了 Windows 来管理存储库的 msysgit 和 tortoiseGit。

我在 eclipse 中安装了 egit 插件来管理团队成员的项目。

我已经参考了以下使用谷歌找到的 EGIT 教程

http://www.vogella.de/articles/EGit/article.html

现在我有以下问题。

我创建了一个名为 'gittest' 的 php 项目

我通过右键单击项目-> 团队-> 共享-> git 创建了存储库

现在,当我尝试使用 git 协议创建它的克隆时,具有以下设置

URI:git://Myserver/websites/gittest/.git 主机:Myserver 存储库路径:/websites/gittest/.git

它给出以下错误

无法列出可用分支
原因:git://Myserver/websites/gittest/.git:连接被拒绝:连接

其他协议(如 http、ssh、ftp 等)也会出现同样的问题。

任何人都可以帮助我了解如何设置此协议,以便我可以与本地网络上的其他团队成员共享项目

谢谢。

4

2 回答 2

1

git 协议需要一个运行在 Myserver 上的 git 服务器。其他协议也需要运行服务器程序。你没有那个。

可以在本地网络上有一个区域,您可以将其设置为 git 存储库,每个人都可以通过文件协议使用该存储库,但是由于该方法不使用任何保护机制,因此所有使用该共享驱动器的人都可以使用该存储库。

您可能需要系统管理知识才能正确执行此操作。我建议您向本地系统管理员提出此问题,以获得最佳效果。

于 2011-02-16T10:50:57.523 回答
0

您好,我能够使用以下链接中提供的方法创建服务器

https://github.com/LogosBible/GitOnCygwin/wiki

我使用 gitolite 创建服务器,因为它是创建 git 服务器的一种高级方法,并且在许多方面都得到了增强。

以下是更多链接,可能有助于任何来这里的人寻找如何在本地 pc 或 lan 上设置 git 服务器

http://therightstuff.de/CommentView,guid,b969ea4d-8d2c-42af-9806-de3631f4df68.aspx

http://jerabi.com/sdionne/blog/2010/09/06/git-repository-server-gitosis-on-win7-working/

http://java2cs2.blogspot.com/2010/03/setup-git-server-on-windows-machine.html

http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/

http://www.shannoncornish.com/blog/2009/04/git-server-windows-2008/

http://markembling.info/2009/08/git-server-gitosis-and-cygwin-on-windows

http://help.beanstalkapp.com/kb/git/setting-up-egit-in-eclipse-to-work-with-your-beanstalk-account

希望这会对某人有所帮助。

谢谢

于 2011-03-08T13:15:33.207 回答