git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: configuring git public repository

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 12, 2008, 12:57 UTC
Message-ID
<m3vdx1o72x.fsf@localhost.localdomain>
In-Reply-To
<8e04b5820809120533o1e7da548l6868660767a5435d@mail.gmail.com>
"Ciprian Dorin Craciun" <ciprian.craciun@gmail.com> writes:
Show 10 quoted lines
> On Fri, Sep 12, 2008 at 7:47 AM, sagi4 <geetha@angleritech.com> wrote:
> >
> > Hi all,
> >
> > I am new git..
> >
> > I would like to configure git as a public repository for my rails
> > application..
> >
> > Please help me..
First, I think you can find required information in many documentation
avaliable online, like "Git User's Manual" (distributed with Git), or
Got Community Book from http://git-scm.com
 
> If I'm correct, you have two major options:
> -- install your own git infrastructure:
>    -- by using git-daemon and serving the git repository throught
>       git://...;

Note that git:// protocol is meant only for _fetching_ (although you can configure it for pushing, it is a good option only in very narrow set of circumstances). And you would have ensure that your firewall allows git traffic.

>    -- by using gitweb? and serving it as http://...;

Gitweb (and cgit, and git-php) is _web interface_ to repository, which means that you can check the state of repository, view current version and the log of changes, and many other things from a web browser. All of those require installing either as CGI module, or some other module for web server having installed.

To have read-only HTTP access you only need to put your repository in a place where your web server will see it. Well, that and ensure that git-update-server-info is run, for clients to be able to know latest state of the repository. Usually it is done using 'update' hook; it should be enough to enable example hook (if you use bare repository as published repository).

To be able to push via HTTP you have to set WebDAV and appropriate permissions on web server. See the documentation.

>    -- by using ssh and serving it as ssh://... (this is
>       appropriate mostly for private repositories);

Usually you would want to restrict access by using git-shell, and perhaps ease configuring permissions using either Gitosis (see also BlogPosts on git wiki) or ssh_acl.

Show 8 quoted lines
>  -- using an existing Git hosting service like:
>     -- (of course) http://repo.or.cz/
>     -- http://github.org/
>     -- http://gitorious.org/
>     -- see also http://git.or.cz/gitwiki/GitHosting
> 
> For open-source / public repositories I would opt for using an
> existing hosting service.
For Rails application I would check what other Ruby on Rails people
use. I would guess that it would be either Rubyforge or GitHub.
 
HTH.
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Ciprian Dorin CraciunNext: Lars Hjemli
Message 3 of 26 in “configuring git public repository”
  1. sagi4Sep 12, 2008
  2. Ciprian Dorin CraciunSep 12, 2008
  3. Jakub NarebskiSep 12, 2008
  4. Lars HjemliSep 12, 2008
  5. CGit and repository listPetr Baudis, Sep 12, 2008
  6. Lars HjemliSep 12, 2008
  7. Jakub NarebskiSep 12, 2008
  8. Shawn O. PearceSep 12, 2008
  9. Lars HjemliSep 12, 2008
  10. Petr BaudisSep 12, 2008
  11. Shawn O. PearceSep 12, 2008
  12. Petr BaudisSep 12, 2008
  13. Shawn O. PearceSep 12, 2008
  14. Jakub NarebskiSep 12, 2008
  15. Shawn O. PearceSep 12, 2008
  16. Petr BaudisSep 12, 2008
  17. Petr BaudisSep 12, 2008
  18. Lars HjemliSep 12, 2008
  19. Petr BaudisSep 13, 2008
  20. Lars HjemliSep 13, 2008
  21. parsing.c: handle unexpected commit/tag contentLars Hjemli, Sep 14, 2008
  22. Lars HjemliSep 14, 2008
  23. Lars HjemliSep 15, 2008
  24. Kristian HøgsbergSep 14, 2008
  25. Kristian HøgsbergSep 14, 2008
  26. Lars HjemliSep 14, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.