Skip to Main Content
Pragmatic Version Control Using Git
book

Pragmatic Version Control Using Git

by Travis Swicegood
December 2008
Intermediate to advanced content levelIntermediate to advanced
184 pages
4h 47m
English
Pragmatic Bookshelf
Content preview from Pragmatic Version Control Using Git

11.8 Setting Up a Public Repository

The one last thing you might need to do is set up the read-only portion of your repository. You have to do this only if you want to share your work with other developers without having to set up a user for them. This is most common in open source development where anyone can read from the repository.

Setting this up requires two steps. First, you have to configure your repository for sharing with Gitosis. Second, you have to run git daemon to respond to the requests.

To configure Gitosis, you need to edit gitosis.conf from earlier. This time, add a new section called repo with the name of your repository. For example, if your repository were called web, you would add this:

 
​[repo web]​

That’s ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Git: Mastering Version Control

Git: Mastering Version Control

Ferdinando Santacroce, Aske Olsson, Rasmus Voss, Jakub Narębski
Pragmatic Guide to Git

Pragmatic Guide to Git

Travis Swicegood
Git Version Control Cookbook - Second Edition

Git Version Control Cookbook - Second Edition

Kenneth Geisshirt, Emanuele Zattin(EUR), Aske Olsson, Rasmus Voss

Publisher Resources

ISBN: 9781680500189Errata Page