git-revise command not found

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

Introduction

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

git-revise: command not found

or when using sudo you get the following error message

sudo: git-revise: command not found

Solutions to git-revise: command not found

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

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

git-revise is:

git revise is a git subcommand to efficiently update, split, and rearrange commits. It is heavily inspired by git rebase, however it tries to be more efficient and ergonomic for patch-stack oriented workflows.

By default, git revise will apply staged changes to a target commit, then update HEAD to point at the revised history. It also supports splitting commits and rewording commit messages.

Unlike git rebase, git revise avoids modifying the working directory or the index state, performing all merges in-memory and only writing them when necessary. This allows it to be significantly faster on large codebases and avoids unnecessarily invalidating builds.

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

sudo apt-get -y install git-revise

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

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

sudo apt -y install git-revise

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

sudo aptitude install git-revise

Summary

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