Skip to main content

Command Palette

Search for a command to run...

Install the git for ADO agent

Updated
1 min read
Install the git for ADO agent
I

An developer who wanted to spread the world all the small bit of required information

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.

More from this blog

Indrajeet Gour's Blog

15 posts

Sharing the small knowledge I have to the world!! Thought of having this in place that this might help few somewhere with something they want...