git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.

From
GYGary Yang <garyyang6@yahoo.com>
Date
Nov 19, 2008, 01:21 UTC
Message-ID
<142315.9815.qm@web37908.mail.mud.yahoo.com>
In-Reply-To
<20081118231925.GW2932@spearce.org>
The command, "git --git-dir=my-git.git init" works. But, I got another error.
http://manpages.ubuntu.com/manpages/intrepid/man7/gitcore-tutorial.html
The document says that, Your "public repository" is now ready to accept your changes. Come back to the machine you have your private repository. From there, run this
        command:
 
            $ git push <public-host>:/path/to/my-git.git master
However, I got "fatal: Not a git repository" error. Do you have any idea?

git push linuxgit01:/pub/git/u-boot.git master fatal: Not a git repository

inuxgit01 is the box I ran the command, "git --git-dir=u-boot.git init".
Thanks,
Gary
--- On Tue, 11/18/08, Shawn O. Pearce <spearce@spearce.org> wrote:
Show 32 quoted lines
> From: Shawn O. Pearce <spearce@spearce.org>
> Subject: Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.
> To: "Gary Yang" <garyyang6@yahoo.com>
> Cc: git@vger.kernel.org
> Date: Tuesday, November 18, 2008, 3:19 PM
> 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.
Previous: Shawn O. PearceNext: Gary Yang
Message 3 of 6 in “How to make public repository GIT_DIR=my-git.git git-init Command not found.”
  1. Gary YangNov 18, 2008
  2. Shawn O. PearceNov 18, 2008
  3. Gary YangNov 19, 2008
  4. Gary YangNov 19, 2008
  5. Gary YangNov 19, 2008
  6. Alex RiesenNov 19, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.