Which git.exe should I refer to?

Git for Windows has four git.exe files git.exe .

They seem a bit different (comparing bytes).

What should I use for other applications that need a link to git.exe?

  • \Program Files\Git\bin\git.exe
  • \Program Files\Git\cmd\git.exe
  • \Program Files\Git\mingw64\bin\git.exe
  • \Program Files\Git\mingw64\libexec\git-core\git.exe
+5
source share
2 answers

Different version is for different purposes.

+3
source

When you use the Windows command prompt, you should reference \Program Files\Git\bin\git.exe

Those under mingw64 are used with the Git bash interface.

+1
source

Source: https://habr.com/ru/post/1259609/


All Articles