Skip to content

An idea to prevent CMD from picking up any git.exe in the current directory #1945

Closed
@gdh1995

Description

@gdh1995

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~

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions