Install the git for ADO agent

Whenever you install the Azure ADO agent in a standalone setup, you need to own everything for your ADO pipeline to run.

Git is one of the most crucial dependencies, as nothing will run from your pipeline if your code checkout does not happen due to missing Git dependencies.

Do the following steps to install the git binary in the VMware instance:

yum -y remove git
yum -y clean packages
mkdir tempgit
cd tempgit
yum install -y autoconf cpio curl-devel expat-devel gcc gettext-devel make openssl-devel perl-ExtUtils-MakeMaker zlib-devel
wget -O v2.24.1.tar.gz https://github.com/git/git/archive/v2.24.1.tar.gz
tar -xzvf ./v2.24.1.tar.gz
cd git-2.24.1/
make configure
./configure --prefix=/usr/local/git
make && make install
ln -sf /usr/local/git/bin/* /usr/bin/
cd ..
rm -fr git-2.24.1
cd ..
rm -fr tempgit
echo "results"
which git
git --version

These installation steps are the cleanest, as we clean all the residuals at the end.