I know that I can do this:
git --git-dir="Z:/www/proj/web/test/sample-repo-cloned/.git" status
However, the problem is that the command is run from proj
folder, which means that all files that are located before sample-repo-cloned
will also be taken into account.
Is there a way to run this command under the scope of sample-repo-cloned
folder?
What's wrong with
(cd Z:/www/proj/web/test/sample-repo-cloned ; git status)
??You should be able to specify the working tree as well as the git directory:
Ie:
The result should be local to the working tree root directory.