git-repair command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
git-repair: command not found
or when using sudo you get the following error message
sudo: git-repair: command not found
Solutions to git-repair: command not found
How To Fix git-repair: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu git-repair is provided by git-repair package.
git-repair is:
git-repair can repair various forms of damage to git repositories.
It is a complement to git fsck, which finds problems, but does not fix them.
As well as avoiding the need to rm -rf a damaged repository and re-clone, using git-repair can help rescue commits you’ve made to the damaged repository and not yet pushed out.
To fix this problem, we can install more using the command below.
sudo apt-get -y install git-repair
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install git-repair.
sudo apt -y install git-repair
Or if you have aptitude installed you can use the following command.
sudo aptitude install git-repair
Summary
In this tutorial we learn how to fix git-repair command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.