git-rename-remote command not found

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

Introduction

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

git-rename-remote: command not found

or when using sudo you get the following error message

sudo: git-rename-remote: command not found

Solutions to git-rename-remote: command not found

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

In Ubuntu git-rename-remote is provided by git-extras package.

git-extras is:

This package provides extra git commands to easily solve typical tasks such as managing remote branches, managing feature/refactor/bug workflows and generate some repository stats.

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

sudo apt-get -y install git-extras

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

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

sudo apt -y install git-extras

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

sudo aptitude install git-extras

Summary

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