...
Code Block |
---|
sudo apt install git |
or for AmaxonAmazon 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.