Monday 15 July 2013

Error while calling git commands in subfolder on Windows CMD -



Error while calling git commands in subfolder on Windows CMD -

i trying phone call git fetch in subfolder while using windows cmd this

d:>c:\git\cmd\git.exe fetch path\to\subfolder

then error: fatal: not git repository (or of parent directories): .git

but when in repository folder works fine:

d:\path\to\subfolder>c:\git\cmd\git.exe fetch

what doing wrong? can phone call git functions in windows subfolders via cmd?

i don't think git fetch can used fetch changed files in sub directory. git fetch used fetch latest changes remote repository , used below.

git fetch <remote_name> <branch_name>

i think doing wrong providing sub directory path after "git fetch". tried same , got below error

ajbose@l-blr-00800896 /c/code/biz/bizdatacollectnodeweb/test (develop) $ git fetch unit fatal: 'unit' not appear git repository fatal: not read remote repository.

i hope helps.

windows git cmd

No comments:

Post a Comment