I am trying to call git fetch
in subfolder while using Windows CMD like this
D:>C:\Git\cmd\git.exe fetch path\to\subfolder
Then I get error: fatal: Not a git repository (or any of the parent directories): .git
But when I am in my repository folder everything works fine:
D:\path\to\subfolder>C:\Git\cmd\git.exe fetch
What am I doing wrong? Can I call git functions in Windows subfolders via CMD?