I have a recent version of VS2019 installed and I have "Git for Windows" installed via the VS2019 Installer.
In "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin" I have git version 2.29.2.windows.4
But in "C:\Program Files\Git\bin" is version git version 2.31.1.windows.1
. This is the version on %PATH%
as evidenced if I run where git
. I'm not sure where this came from but I assume TortoiseGit or another tool installed it.
Which will VS2019 use internally - does its internal version override or get overiden by my %PATH%? Where can I find which version of git is installed by each version of VS2019, I can't see it in VS release notes? Really I would rather have a single version of git used everywhere to avoid any confusion, what's the best way to do this?