Setting up a basic Git server

It's pretty easy to set up a basic Git server. While this is rarely enough in a large organization, it is a good exercise before moving on to more advanced solutions.

Let's first of all specify an overview of the steps we will take and the bits and pieces we will need to complete them:

  1. A client machine with two user accounts. The git and ssh packages should be installed.

    The SSH protocol features prominently as a base transport for other protocols, which is also is the case for Git.

    You need your SSH public keys handy. If you don't have the keys for some reason, use ssh-keygen to create them.

    Tip

    We need two users, because we will simulate two users talking to a central server. Make keys for both test users.

  2. A server where ...

Get Learning DevOps: Continuously Deliver Better Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.