From: "Shawn O. Pearce" <spearce@spearce.org>
To: Gary Yang <garyyang6@yahoo.com>
Cc: git@vger.kernel.org
Subject: Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.
Date: Tue, 18 Nov 2008 15:19:25 -0800 [thread overview]
Message-ID: <20081118231925.GW2932@spearce.org> (raw)
In-Reply-To: <138223.4849.qm@web37905.mail.mud.yahoo.com>
Gary Yang <garyyang6@yahoo.com> wrote:
> Hi,
>
> I want to make a public repository. I followed the instructions in gitcore-tutorial. I typed "GIT_DIR=my-git.git git init" per instruction. But, I got command not found. I do not think this is the correct command. How should I do? I use C-Shell.
>
> http://manpages.ubuntu.com/manpages/intrepid/man7/gitcore-tutorial.html
>
> %mkdir my-git.git
> %GIT_DIR=my-git.git git init
>
> GIT_DIR=my-git.git: Command not found.
Instead you can do:
$ git --git-dir=my-git.git init
The --git-dir option does the same thing that GIT_DIR= was doing
in a Bourne shell.
--
Shawn.
next prev parent reply other threads:[~2008-11-18 23:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-18 23:16 How to make public repository GIT_DIR=my-git.git git-init Command not found Gary Yang
2008-11-18 23:19 ` Shawn O. Pearce [this message]
2008-11-19 1:21 ` Gary Yang
2008-11-19 1:28 ` Gary Yang
2008-11-19 1:35 ` Gary Yang
2008-11-19 13:38 ` Alex Riesen
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=20081118231925.GW2932@spearce.org \
--to=spearce@spearce.org \
--cc=garyyang6@yahoo.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).