git-crypt command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
git-crypt: command not found
or when using sudo you get the following error message
sudo: git-crypt: command not found
Solutions to git-crypt: command not found
How To Fix git-crypt: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu git-crypt is provided by git-crypt package.
git-crypt is:
git-crypt enables transparent encryption and decryption of files in a git repository. Files which you choose to protect are encrypted when committed, and decrypted when checked out. git-crypt lets you freely share a repository containing a mix of public and private content. git-crypt gracefully degrades, so developers without the secret key can still clone and commit to a repository with encrypted files. This lets you store your secret material (such as keys or passwords) in the same repository as your code, without requiring you to lock down your entire repository.
To fix this problem, we can install more using the command below.
sudo apt-get -y install git-crypt
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install git-crypt.
sudo apt -y install git-crypt
Or if you have aptitude installed you can use the following command.
sudo aptitude install git-crypt
Summary
In this tutorial we learn how to fix git-crypt command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.