git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to make public repository GIT_DIR=my-git.git git-init  Command not found.
@ 2008-11-18 23:16 Gary Yang
  2008-11-18 23:19 ` Shawn O. Pearce
  2008-11-19 13:38 ` Alex Riesen
  0 siblings, 2 replies; 6+ messages in thread
From: Gary Yang @ 2008-11-18 23:16 UTC (permalink / raw)
  To: git

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.


Thank you,


Gary





      

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

* Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.
  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
  2008-11-19  1:21   ` Gary Yang
  2008-11-19 13:38 ` Alex Riesen
  1 sibling, 1 reply; 6+ messages in thread
From: Shawn O. Pearce @ 2008-11-18 23:19 UTC (permalink / raw)
  To: Gary Yang; +Cc: git

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.

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

* Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.
  2008-11-18 23:19 ` Shawn O. Pearce
@ 2008-11-19  1:21   ` Gary Yang
  2008-11-19  1:28     ` Gary Yang
  0 siblings, 1 reply; 6+ messages in thread
From: Gary Yang @ 2008-11-19  1:21 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: git



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:

> 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.


      

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

* Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.
  2008-11-19  1:21   ` Gary Yang
@ 2008-11-19  1:28     ` Gary Yang
  2008-11-19  1:35       ` Gary Yang
  0 siblings, 1 reply; 6+ messages in thread
From: Gary Yang @ 2008-11-19  1:28 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: git


inuxgit01 is the box I want to make public repository. At my own box, linux12, I ran the command, git push linuxgit01:/pub/git/u-boot.git master

What I did wrong?

Thanks.

--- On Tue, 11/18/08, Gary Yang <garyyang6@yahoo.com> wrote:

> From: Gary Yang <garyyang6@yahoo.com>
> Subject: Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.
> To: "Shawn O. Pearce" <spearce@spearce.org>
> Cc: git@vger.kernel.org
> Date: Tuesday, November 18, 2008, 5:21 PM
> 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:
> 
> > 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.
> 
> 
>       
> --
> To unsubscribe from this list: send the line
> "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at 
> http://vger.kernel.org/majordomo-info.html


      

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

* Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.
  2008-11-19  1:28     ` Gary Yang
@ 2008-11-19  1:35       ` Gary Yang
  0 siblings, 0 replies; 6+ messages in thread
From: Gary Yang @ 2008-11-19  1:35 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: git

Never mind. I figured it out. I need to cd to u-boot.git (my local git repository, the run the command, git push linuxgit01:/pub/git/u-boot.git master.


--- On Tue, 11/18/08, Gary Yang <garyyang6@yahoo.com> wrote:

> From: Gary Yang <garyyang6@yahoo.com>
> Subject: Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.
> To: "Shawn O. Pearce" <spearce@spearce.org>
> Cc: git@vger.kernel.org
> Date: Tuesday, November 18, 2008, 5:28 PM
> inuxgit01 is the box I want to make public repository. At my
> own box, linux12, I ran the command, git push
> linuxgit01:/pub/git/u-boot.git master
> 
> What I did wrong?
> 
> Thanks.
> 
> --- On Tue, 11/18/08, Gary Yang <garyyang6@yahoo.com>
> wrote:
> 
> > From: Gary Yang <garyyang6@yahoo.com>
> > Subject: Re: How to make public repository
> GIT_DIR=my-git.git git-init Command not found.
> > To: "Shawn O. Pearce"
> <spearce@spearce.org>
> > Cc: git@vger.kernel.org
> > Date: Tuesday, November 18, 2008, 5:21 PM
> > 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:
> > 
> > > 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.
> > 
> > 
> >       
> > --
> > To unsubscribe from this list: send the line
> > "unsubscribe git" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at 
> > http://vger.kernel.org/majordomo-info.html
> 
> 
>       
> --
> To unsubscribe from this list: send the line
> "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at 
> http://vger.kernel.org/majordomo-info.html


      

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

* Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.
  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
@ 2008-11-19 13:38 ` Alex Riesen
  1 sibling, 0 replies; 6+ messages in thread
From: Alex Riesen @ 2008-11-19 13:38 UTC (permalink / raw)
  To: garyyang6; +Cc: git

2008/11/19 Gary Yang <garyyang6@yahoo.com>:
> 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.

git --bare init

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

end of thread, other threads:[~2008-11-19 13:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).