I successfully upgraded/installed git for windows, but was surprised to see git executables in both the bin and cmd directories in C:\Program Files\Git. Which one is used? Why are these executables in both locations?
To see which executable is being used (in any situation, not just this one), you can use the where command. It's the equivalent to Linux's which command that does the same thing:
where git
This should print the path to the git executable that is used whenever you call git from the command line.
As for why there are executables in both locations, it's hard to say without knowing more about how you installed git. Are both of those executables valid git binaries? If you call the fill path to them (e.g. "C:\Program Files\Git\cmd\git.exe" --version) does it work?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.