git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* executing git from a non git directory
@ 2007-07-22  6:55 Patrick Aljord
  2007-07-22  7:07 ` Shawn O. Pearce
  2007-07-22  7:11 ` Jeff King
  0 siblings, 2 replies; 4+ messages in thread
From: Patrick Aljord @ 2007-07-22  6:55 UTC (permalink / raw)
  To: git

Hey all,

I have my git directory that is in /path/to/my_git_dir

I would like to check it from another direcory, I tried the following command:

$ git --git-dir=/path/to/my_git_dir status

and

$ GIT_DIR='/path/to/my_git_dir' && git status

but in both cases I get this error:
fatal: Not a git repository: '/path/to/my_git_dir'

yet when I do "$ cd /path/to/my_git_dir && git status" I do get the results.

Any idea what I'm doing wrong or if there's a way to check a git dir
from a non git dir?

thanx in advance

Pat

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-22 19:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-22  6:55 executing git from a non git directory Patrick Aljord
2007-07-22  7:07 ` Shawn O. Pearce
2007-07-22  7:11 ` Jeff King
2007-07-22 19:02   ` Patrick Aljord

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).