How to update the git on self hosted ADO agent
Added all nitty-gritty of the process...
Why I write is post is, it is lit harder to update the git version once you installed the ADO agent into any RHEL/Linux base system.
More this will also work out with a simple RHEL/Linux-based system for git updates.
Below are the steps to be followed:
Step1: First check the version you wanted to download
You can go to this link to get all the current versions available at any given point in time.
For example - you can pick like this git-2.9.5.tar.gz
it should end with tar.gz
Step2: Download the binary into the server
The link you copied just download that into your server using wget
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz
Step3: Remove the existing git
yum remove git
Step4: Installation of the latest version of git
tar -zxf git-2.9.5.tar.gz
cd git-2.9.5
make prefix=/usr/local/git all
make prefix=/usr/local/git install
echo 'export PATH=$PATH:/usr/local/git/bin' >> /etc/bashrc
source /etc/bashrc
Step5: Check your current version
If everything goes fine you should able to see the latest version of git now.
git --version
git version 2.9.5
*Note - you should be root all the time while doing this activity. * Do let me know in a comment if any issues you faced in the process.
Thanks for your read, hope that helps.