git-hub command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
git-hub: command not found
or when using sudo you get the following error message
sudo: git-hub: command not found
Solutions to git-hub: command not found
How To Fix git-hub: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu git-hub is provided by git-hub package.
git-hub is:
git hub is a simple command line interface to GitHub, enabling most useful GitHub tasks (like creating and listing pull request or issues) to be accessed directly through the Git command line.
Although probably the most outstanding feature (and the one that motivated the creation of this tool) is the pull rebase command, which is the rebasing version of the GitHub Merge (TM) button. This enables an easy workflow that doesn’t involve thousands of merges which makes the repository history unreadable.
Another unique feature is the ability to transform an issue into a pull request by attaching commits to it (this is something offered by the GitHub API but not by the web interface).
To fix this problem, we can install more using the command below.
sudo apt-get -y install git-hub
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install git-hub.
sudo apt -y install git-hub
Or if you have aptitude installed you can use the following command.
sudo aptitude install git-hub
Summary
In this tutorial we learn how to fix git-hub command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.