Closed
Description
The release note in https://github.com/git-for-windows/git/releases/tag/v2.19.2.windows.1 says:
It is impossible to turn off CMD's behavior where it picks up any git.exe in the current directory, so let's discourage the use of Git CMD.
I agree with it, but I think there may be a way to make CMD not use the git.exe
in the current directory - according to $PATHEXT
, git.com
takes precedence over git.exe
, so if only there's /usr/bin/git.com
, then a command like git status
will use it directly.
Just a naive idea~