1 Answer
1

Not surprising your second example doesn't work, because git is a global command (assuming you installed it that way). Doing ../git is looking for an executable named git one folder back (I would assume in Windows it is looking for git.exe or git.bat there or something similar).

Instead, git provides an option for --git-dir=<path> (as per the man page).

--git-dir=<path>
Set the path to the repository. This can also be controlled by
setting the GIT_DIR environment variable. It can be an absolute
path or relative path to current working directory.

So assuming it works in windows as it does in Linux, you would probably want: