git-secrets command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
git-secrets: command not found
or when using sudo you get the following error message
sudo: git-secrets: command not found
Solutions to git-secrets: command not found
How To Fix git-secrets: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu git-secrets is provided by git-secrets package.
git-secrets is:
git-secrets scans commits, commit messages, and –no-ff merges to prevent adding secrets into your git repositories. If a commit, commit message, or any commit in a –no-ff merge history matches one of your configured prohibited regular expression patterns, then the commit is rejected.
To fix this problem, we can install more using the command below.
sudo apt-get -y install git-secrets
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install git-secrets.
sudo apt -y install git-secrets
Or if you have aptitude installed you can use the following command.
sudo aptitude install git-secrets
Summary
In this tutorial we learn how to fix git-secrets command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.