Use the package manager appropriate for your distribution to install GIT like yum or apt-get.
For instance for Ubuntu Linux use:
Code Block |
---|
sudo apt install git |
or for Amazon Linux, Centos or Redhat:
Code Block |
---|
sudo yum install git |
Sometimes these installation commands may have trouble if you have:
An out of date version of Linux
A virtual machine of Linux that you haven’t run for a while or haven’t rebooted for a while
It’s a good idea to start with rebooting the machine and run any updates that are needed.
If you have a really toasted copy of Linux you might want to get a fresh one.