In order to clone a git repository one must have the name of the repository. When working with many repositories it can be hard to remember all the different names, so now I'm wondering if there is possible to list all existing repositories on the remote server using some git command.

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted

You'd either need Shell access to the machine hosting the git-daemon and see the params used to invoke git-daemon or use the Git Web frontend (Repository browser) called GitWeb.

Also refer this existing question

There is one other way but it needs some assistance of you companies server admins. Git features a browsable web frontend called 'GitWeb' which can be configured to show all projects served by git.

Details are explained in the GitWeb README - the config key of interest is called "GITWEB_PROJECTROOT":

GITWEB_PROJECTROOT The root directory for all projects shown by gitweb. Must be set correctly for gitweb to find repositories to display. See also "Gitweb repositories" in the INSTALL file for gitweb.

Maybe you could have a talk with you admins - gitweb can be a great profit for all developers.

As far as I can tell, this needs to be done on the machine that is running git-daemon. You either need to check the arguments where git-daemon was invoked, or possibly check /etc/inetd.conf

link|improve this answer
1  
The existing question contains the answer. It would be nice if maybe you copy the content into a quote in your post. – Michael K Jan 17 at 13:38
1  
Thanks for the input @MichaelK. Done as directed. – IUnknown Jan 17 at 18:35
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.