git-sizer command not found

In this troubleshooting guide we learn how to fix git-sizer command not found error message

Introduction

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

git-sizer: command not found

or when using sudo you get the following error message

sudo: git-sizer: command not found

Solutions to git-sizer: command not found

How To Fix git-sizer: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu git-sizer is provided by git-sizer package.

git-sizer is:

git-sizer computes various size metrics for a Git repository, flagging those that might cause problems or inconvenience. For example:

• Is the repository too big overall? • Does the repository have too many references (branches and/or tags)? • Does the repository include too many objects? • Does the repository include gigantic blobs (files)? • Does the repository include many slightly different large text files? • Does the repository include gigantic trees (directories)? • Does the repository have many identical files? • Does the repository include absurdly long path names? • Are there other bizarre and questionable things in the repository? • Annotated tags pointing at one another in long chains? • Octopus merges with dozens of parents? • Commits with gigantic log messages?

git-sizer can help to reveal the problems described above.

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

sudo apt-get -y install git-sizer

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

You can also use apt command to install git-sizer.

sudo apt -y install git-sizer

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

sudo aptitude install git-sizer

Summary

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