Gitolite
Setup git hosting on a central server, with fine-grained access control and many more powerful features.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Overview
Gitolite is a lightweight, self-hosted Git repository hosting tool developed by Sitaram Chamarty. Its website describes it as a way to set up Git hosting on a central server with fine-grained access control and a range of advanced features. It has no web interface, and all administration is done through the command line and configuration files. The administrator edits a special admin repository (gitolite-admin) and pushes it, which updates users, SSH public keys and repository permissions.
Key Features
- Fine-grained access control: Set read, write, force-push and other permissions in the conf file by user, group, repository and branch/ref
- Virtual refs (VREF): Add further push restrictions based on conditions such as file paths or the content of the changes
- User-created repositories (wild repos): Let users create temporary or personal repositories themselves according to rules
- Templates: Reuse permission rules to make it easier to manage a large number of repositories
- Delegation of administration: Hand over the management of some repositories to other people
- Mirroring: Sync repositories across multiple servers
- git-config settings: Set git config values for a repository directly in the configuration
- Triggers and non-core programs: Extend functionality through triggers; a set of non-core programs is included, and you can also write your own
- Works with gitweb and git-daemon: Integrates with both tools to provide web browsing and anonymous read-only access
- Other: Supports binary file locking, SSH certificates, and HTTP mode
Target Users and Use Cases
Gitolite suits system administrators who are familiar with Unix and SSH, as well as teams and companies that want to host private Git repositories on their own servers. It is especially well suited to cases where you only need access control and don't need a full web platform like GitLab or Gitea.
Core Strengths
- Lightweight with few dependencies: it only needs Git, Perl and SSH
- Flexible permission model that can be precise down to the branch and file path
- The configuration is itself a Git repository, so changes are versioned, which makes auditing easy
- Long development history, comprehensive documentation and a mature community
Installation and Deployment
- It can be installed through the system package manager. The package name is usually
gitolite3; take care not to install the wrong version - The source code is hosted on Codeberg (codeberg.org/sitaramc/gitolite), and there is also a mirror on GitHub (github.com/sitaramc/gitolite)
- The official documentation offers several installation methods: a quick install for those experienced with Unix/SSH, a standard SSH-mode install, a detailed step-by-step guide (fool-proof setup), and an HTTP-mode install
- After installation, you can follow the official cookbook for common tasks. If you run into installation problems or lose your keys, see the emergencies page
Technical Requirements
- A Unix/Linux server
- Git, Perl and an SSH service (HTTP mode can be used instead)
- Some knowledge of SSH and the command line
Notable Characteristics
- The software is licensed under GPL v2. The documentation is licensed separately under CC BY-NC-SA 3.0
- There is no graphical web interface, and no collaboration features such as pull requests or issues
- Support channels include a mailing list (Google Groups), the IRC channel #gitolite on libera.chat, and a separate mailing list for releases and security announcements
- There is a dedicated book on the market, Gitolite Essentials
Discover more
Pagure
A lightweight, powerful, and flexible git-centric forge with features laying the foundation for federated and decentralized development.
Redmine
Redmine is a flexible project management web application.
Rukovoditel
Configurable open source project management, web-based application.
Sourcehut
A full web git interface with no javascript.
Tuleap
Tuleap is a libre suite to plan, track, code and collaborate on software projects.
92five
Self-hosted project management application.