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.4 Configuring the Server for Gitosis

Gitosis requires two things in order to run on your server. It must have its own user on the server and a directory to store all your repositories.

Each operating system has a slightly different way for adding new users. In most Linux distributions, you can use the adduser command.

Gitosis needs a new user on the system. Their home directory is where Gitosis stores its configuration values and its repositories. You can specify the home directory on most Linux systems by adding --home /path/to/home.

The home path can be located anywhere on the system that you want. The convention within Gitosis is to put it in /srv/example.com/git—changing example.com out for your domain—but that isn’t required.

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