Search code examples
phpeclipsegit-cloneegitgit-cvs

Unable to clone repository using Egit and Eclipse


I have windows server 2003 as my Operating Systme.

I am using WAMP for my php development.

I am using Eclipse Helios for PHP Developers for my development.

I have installed msysgit and tortoiseGit which comes for windows to manage repositories.

I have installed egit plugin in eclipse to manage project with team members.

I have referred following tutorial for EGIT that I found using google

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

Now I have following problem.

I have create one php project with name 'gittest'

I created repository by right clicking on project -> team -> share -> git

Now when I tried to create its clone using git protocol, with following settings

URI: git://Myserver/websites/gittest/.git Host: Myserver Repository Path: /websites/gittest/.git

it gives following error

Cannot list available branches
Reason: git://Myserver/websites/gittest/.git: Connection refused: connect

same problem occurs with other protocols like http,ssh,ftp etc.

Can anyone help me about how to set this protocols so that I can share project with other team members on local network

Thanks.


Solution

  • Hello I was able to create server using method given on following link

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

    I used gitolite to create server as it is an advanced way to create git server and enhanced in many ways.

    Following are some more links which might help anyone comming here in search of how to setup git server on your local pc or lan

    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

    Hope this will help some one.

    Thanks