tg command not found

In this troubleshooting guide we learn how to fix tg command not found error message

Introduction

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

tg: command not found

or when using sudo you get the following error message

sudo: tg: command not found

Solutions to tg: command not found

How To Fix tg: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu tg is provided by topgit package.

topgit is:

TopGit manages a patch queue using Git topic branches, one patch per branch. It allows for patch dependencies and can thus manage non-linear patch series.

TopGit is a minimal layer on top of Git, which does not limit use of Git’s functionality (such as the index). It rigorously keeps history until a patch is accepted upstream. It is also fully usable across distributed repositories.

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

sudo apt-get -y install topgit

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

You can also use apt command to install topgit.

sudo apt -y install topgit

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

sudo aptitude install topgit

Summary

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