Firstly need to install git itself with the following yum install git -y --enablerepo rpmforge After that setup the SSH…