How to Setup Git on Linux

First, make sure your linux computer is up to date. At a terminal promt do the following

 

# Unbuntu

sudo dpkg --configure -a
sudo apt install git

 

 

# CentOS7

sudo yum install git