I've heard of this %PATH% thing which allows the user to control where they place executables https://github.com/sebkur/forceterm/blob/release-1.1.0/src/m...
Windows also has %PATHEXT%. It's a set of executable extensions like bat, exe, com, cmd.
It is what allows calling `program` and reaching `program.exe`.
I'm not even sure how popular git bash is on Windows, I vaguely remember cygwin might be something many user that care to use a terminal might have installed?