'How to upgrade GIT to latest version in Visual Studio Team Services?

I am using online Visual Studio Team Services and GIT for a repository. I have the latest installation of GIT on my computer but when I push code to the repository I am getting an information

"remote: We noticed you're using an older version of GIT. For the best experience, upgrade to a newer version."

From the message I understood that I need to update the GIT in the Visual Studio Team Services to the latest version and I tried to find the way to upgrade but I wasn't able to find the option. Could you please help me to get the right direction? Thanks



Solution 1:[1]

No, Visual Studio Team Services is telling you that you need to upgrade your local Git client. VSTS is safely running a custom Git implementation that you cannot modify.

If you're on Windows, visit https://git-for-windows.github.io/ and install the latest version.

Solution 2:[2]

You need to upgrade your local git client. you should use the following command for upgrade git from the console.

for versions between 2.14.2 and 2.16.1

C:\> git update

for version above 2.16.1

git update-git-for-windows

Solution 3:[3]

If you have chocolatey installed, run >choco upgrade git in command prompt.

Solution 4:[4]

The issue is that VS is using MinGit: https://github.com/git-for-windows/git/releases/tag/v2.35.2.windows.1

You can update it using Nuget package called Git-Windows-Minimal: https://www.nuget.org/packages/Git-Windows-Minimal/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Edward Thomson
Solution 2 Abdul Qadir Memon
Solution 3 Sahil Jain
Solution 4 tsap