Git on the server
The previous chapters should have given you enough knowledge to master most of the day-to-day version control tasks in Git. Chapter 6, Collaborative Development with Git, explained how you can lay out repositories for collaboration. Here, we will explain how to set up Git repositories to enable remote access on a server, allowing you to fetch from and push to them.
The topic of administration of the Git repositories is a large one. There are books written about specific repository management solutions, such as Gitolite, Gerrit, GitHub, or GitLab. Here, you will hopefully find enough information to help you choose a solution or your own.
Let’s start with the tools and mechanisms to manage remote repositories themselves, and then move on to the ways of serving Git repositories (i.e., putting Git on the server).
Server-side hooks
Hooks that are invoked on the server can be used for server administration; among others, these hooks can control access...