0

I noticed that I have multiple git.exe in my computer which I didn't explicitly installed. Some seems to be installed by Visual Studio 2019/2022.

Two versions found: 2.34.1 and 2.38.1. Is this normal or have I messed up anything? I would like to have a single Git version globally setup where other apps can use. Is this possible?

enter image description here

Alen Paul Varghese
  • 1,278
  • 14
  • 27
user2058413
  • 691
  • 3
  • 10
  • 28

2 Answers2

0

Are you using git via visual studios team explorer, git version control provider? If so, make sure to look at the settings within visual studio. If you are using something like Fork (which I recommend) or the command line, then those ones in visual studio don't matter.

James
  • 1,973
  • 1
  • 18
  • 32
  • Yes I mainly use VisualStudio so I guess it's using the git.exe installed by VS setup. So is it ok to assume to leave these as is and what if i install Git For Windows and set it to my path. Will it clash with VS git? I would like to use just one version of git in the system.... – user2058413 May 10 '23 at 07:01
  • Visual studio does not seem to support picking a specific install of git, so it will always use its own. Generally though the location of git.exe is not relevant, because your [user]/.config/git folder is shared. – James May 10 '23 at 18:49
  • There is generally no issue with your situation. If you end up needing LFS (large files extension) or something non-standard, that could be an issue, and generally i don't trust visual studios git integration, but having multiple git.exe's is no problem at all. – James May 10 '23 at 18:58
0

So is it ok to assume to leave these as is and what if i install Git For Windows and set it to my path. Will it clash with VS git?

No, it will not clash: Visual Studio has Git tooling built directly into the IDE, starting with Visual Studio 2019 version 16.8. It will use it directly, located here.

You can install a regular Git For Windows at the same time without issue.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250