commit-partial command not found

In this troubleshooting guide we learn how to fix commit-partial command not found error message

Introduction

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

commit-partial: command not found

or when using sudo you get the following error message

sudo: commit-partial: command not found

Solutions to commit-partial: command not found

How To Fix commit-partial: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu commit-partial is provided by commit-patch package.

commit-patch is:

Normally version control systems don’t allow fine grained commits. commit-patch allows the user to control exactly what gets committed by letting the user supply a patch to be committed rather than using the files in the current working directory.

commit-patch supports Darcs, Git, Mercurial, Bazaar, Monotone, Subversion, or CVS repositories.

Also included is an Emacs interface to commit-patch. It allows you to just hit C-c C-c in any patch buffer to apply and commit only the changes indicated by the patch, regardless of the changes in your working directory.

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

sudo apt-get -y install commit-patch

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

You can also use apt command to install commit-patch.

sudo apt -y install commit-patch

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

sudo aptitude install commit-patch

Summary

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