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.
Read now
Unlock full access