From: "Patrick Aljord" <patcito@gmail.com>
To: git@vger.kernel.org
Subject: executing git from a non git directory
Date: Sun, 22 Jul 2007 01:55:33 -0500 [thread overview]
Message-ID: <6b6419750707212355q48a934e4n3be0d6111694ad01@mail.gmail.com> (raw)
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
next reply other threads:[~2007-07-22 6:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-22 6:55 Patrick Aljord [this message]
2007-07-22 7:07 ` executing git from a non git directory Shawn O. Pearce
2007-07-22 7:11 ` Jeff King
2007-07-22 19:02 ` Patrick Aljord
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6b6419750707212355q48a934e4n3be0d6111694ad01@mail.gmail.com \
--to=patcito@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).