gitolite command not found

In this troubleshooting guide we learn how to fix gitolite command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

gitolite: command not found

or when using sudo you get the following error message

sudo: gitolite: command not found

Solutions to gitolite: command not found

How To Fix gitolite: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu gitolite is provided by gitolite3 package.

gitolite3 is:

Gitolite is an SSH-based gatekeeper providing access control for a server that hosts many git repositories. Without gitolite, each developer needing to push to one of the repositories hosted would need a user account on that server; gitolite lets you do that just using SSH public keys tied to a single, common, user that hosts all the repositories.

Gitolite can restrict who can read (clone/fetch) from or write (push) to a repository, and who can push to what branch or tag - an important issue in corporate environments. Other features include:

  • access control by branch-name or by modified file/directory;
  • per-developer “personal namespace” prefixes;
  • simple but powerful configuration file syntax (with validation);
  • config files (and authority for maintaining them) can be split;
  • easy integration with gitweb;
  • comprehensive logging;
  • easy migration from gitosis.

To fix this problem, we can install more using the command below.

sudo apt-get -y install gitolite3

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install gitolite3.

sudo apt -y install gitolite3

Or if you have aptitude installed you can use the following command.

sudo aptitude install gitolite3

Summary

In this tutorial we learn how to fix gitolite command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.