{"thread":{"id":"16385","subject":"How to make public repository GIT_DIR=my-git.git git-init Command not found.","startedAt":"2008-11-18T23:16:02Z","lastAt":"2008-11-19T13:38:12Z","messageCount":6,"participants":["Gary Yang","Shawn O. Pearce","Alex Riesen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"96104","messageId":"138223.4849.qm@web37905.mail.mud.yahoo.com","threadId":"16385","inReplyTo":null,"subject":"How to make public repository GIT_DIR=my-git.git git-init Command not found.","fromName":"Gary Yang","fromEmail":"garyyang6@yahoo.com","sentAt":"2008-11-18T23:16:02Z","receivedAt":"2008-11-18T23:16:02Z","isPatch":false,"sender":{"key":"garyyang6@yahoo.com","avatar":null},"body":"Hi,\n\nI 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.\n\nhttp://manpages.ubuntu.com/manpages/intrepid/man7/gitcore-tutorial.html\n\n%mkdir my-git.git\n%GIT_DIR=my-git.git git init\n\nGIT_DIR=my-git.git: Command not found.\n\n\nThank you,\n\n\nGary\n\n\n\n\n\n      \n"},{"id":"96105","messageId":"20081118231925.GW2932@spearce.org","threadId":"16385","inReplyTo":"138223.4849.qm@web37905.mail.mud.yahoo.com","subject":"Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-11-18T23:19:25Z","receivedAt":"2008-11-18T23:19:25Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Gary Yang <garyyang6@yahoo.com> wrote:\n> Hi,\n> \n> 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.\n> \n> http://manpages.ubuntu.com/manpages/intrepid/man7/gitcore-tutorial.html\n> \n> %mkdir my-git.git\n> %GIT_DIR=my-git.git git init\n> \n> GIT_DIR=my-git.git: Command not found.\n\nInstead you can do:\n\n  $ git --git-dir=my-git.git init\n\nThe --git-dir option does the same thing that GIT_DIR= was doing\nin a Bourne shell.\n\n-- \nShawn.\n"},{"id":"96110","messageId":"142315.9815.qm@web37908.mail.mud.yahoo.com","threadId":"16385","inReplyTo":"20081118231925.GW2932@spearce.org","subject":"Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.","fromName":"Gary Yang","fromEmail":"garyyang6@yahoo.com","sentAt":"2008-11-19T01:21:32Z","receivedAt":"2008-11-19T01:21:32Z","isPatch":false,"sender":{"key":"garyyang6@yahoo.com","avatar":null},"body":"\n\nThe command, \"git --git-dir=my-git.git init\" works. But, I got another error.\n\nhttp://manpages.ubuntu.com/manpages/intrepid/man7/gitcore-tutorial.html\n\nThe 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\n        command:\n \n            $ git push <public-host>:/path/to/my-git.git master\n\n\nHowever, I got \"fatal: Not a git repository\" error. Do you have any idea?\n\n\ngit push linuxgit01:/pub/git/u-boot.git master\nfatal: Not a git repository\n\ninuxgit01 is the box I ran the command, \"git --git-dir=u-boot.git init\".\n\nThanks,\n\n\nGary\n\n\n\n\n--- On Tue, 11/18/08, Shawn O. Pearce <spearce@spearce.org> wrote:\n\n> From: Shawn O. Pearce <spearce@spearce.org>\n> Subject: Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.\n> To: \"Gary Yang\" <garyyang6@yahoo.com>\n> Cc: git@vger.kernel.org\n> Date: Tuesday, November 18, 2008, 3:19 PM\n> Gary Yang <garyyang6@yahoo.com> wrote:\n> > Hi,\n> > \n> > I want to make a public repository. I followed the\n> instructions in gitcore-tutorial. I typed\n> \"GIT_DIR=my-git.git git init\" per instruction.\n> But, I got command not found. I do not think this is the\n> correct command. How should I do? I use C-Shell.\n> > \n> >\n> http://manpages.ubuntu.com/manpages/intrepid/man7/gitcore-tutorial.html\n> > \n> > %mkdir my-git.git\n> > %GIT_DIR=my-git.git git init\n> > \n> > GIT_DIR=my-git.git: Command not found.\n> \n> Instead you can do:\n> \n>   $ git --git-dir=my-git.git init\n> \n> The --git-dir option does the same thing that GIT_DIR= was\n> doing\n> in a Bourne shell.\n> \n> -- \n> Shawn.\n\n\n      \n"},{"id":"96111","messageId":"299370.3004.qm@web37902.mail.mud.yahoo.com","threadId":"16385","inReplyTo":"142315.9815.qm@web37908.mail.mud.yahoo.com","subject":"Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.","fromName":"Gary Yang","fromEmail":"garyyang6@yahoo.com","sentAt":"2008-11-19T01:28:24Z","receivedAt":"2008-11-19T01:28:24Z","isPatch":false,"sender":{"key":"garyyang6@yahoo.com","avatar":null},"body":"\ninuxgit01 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\n\nWhat I did wrong?\n\nThanks.\n\n--- On Tue, 11/18/08, Gary Yang <garyyang6@yahoo.com> wrote:\n\n> From: Gary Yang <garyyang6@yahoo.com>\n> Subject: Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.\n> To: \"Shawn O. Pearce\" <spearce@spearce.org>\n> Cc: git@vger.kernel.org\n> Date: Tuesday, November 18, 2008, 5:21 PM\n> The command, \"git --git-dir=my-git.git init\"\n> works. But, I got another error.\n> \n> http://manpages.ubuntu.com/manpages/intrepid/man7/gitcore-tutorial.html\n> \n> The document says that, Your \"public repository\"\n> is now ready to accept your changes. Come back to the\n> machine you have your private repository. From there, run\n> this\n>         command:\n>  \n>             $ git push\n> <public-host>:/path/to/my-git.git master\n> \n> \n> However, I got \"fatal: Not a git repository\"\n> error. Do you have any idea?\n> \n> \n> git push linuxgit01:/pub/git/u-boot.git master\n> fatal: Not a git repository\n> \n> inuxgit01 is the box I ran the command, \"git\n> --git-dir=u-boot.git init\".\n> \n> Thanks,\n> \n> \n> Gary\n> \n> \n> \n> \n> --- On Tue, 11/18/08, Shawn O. Pearce\n> <spearce@spearce.org> wrote:\n> \n> > From: Shawn O. Pearce <spearce@spearce.org>\n> > Subject: Re: How to make public repository\n> GIT_DIR=my-git.git git-init Command not found.\n> > To: \"Gary Yang\" <garyyang6@yahoo.com>\n> > Cc: git@vger.kernel.org\n> > Date: Tuesday, November 18, 2008, 3:19 PM\n> > Gary Yang <garyyang6@yahoo.com> wrote:\n> > > Hi,\n> > > \n> > > I want to make a public repository. I followed\n> the\n> > instructions in gitcore-tutorial. I typed\n> > \"GIT_DIR=my-git.git git init\" per\n> instruction.\n> > But, I got command not found. I do not think this is\n> the\n> > correct command. How should I do? I use C-Shell.\n> > > \n> > >\n> >\n> http://manpages.ubuntu.com/manpages/intrepid/man7/gitcore-tutorial.html\n> > > \n> > > %mkdir my-git.git\n> > > %GIT_DIR=my-git.git git init\n> > > \n> > > GIT_DIR=my-git.git: Command not found.\n> > \n> > Instead you can do:\n> > \n> >   $ git --git-dir=my-git.git init\n> > \n> > The --git-dir option does the same thing that GIT_DIR=\n> was\n> > doing\n> > in a Bourne shell.\n> > \n> > -- \n> > Shawn.\n> \n> \n>       \n> --\n> To unsubscribe from this list: send the line\n> \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at \n> http://vger.kernel.org/majordomo-info.html\n\n\n      \n"},{"id":"96113","messageId":"674246.30132.qm@web37901.mail.mud.yahoo.com","threadId":"16385","inReplyTo":"299370.3004.qm@web37902.mail.mud.yahoo.com","subject":"Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.","fromName":"Gary Yang","fromEmail":"garyyang6@yahoo.com","sentAt":"2008-11-19T01:35:38Z","receivedAt":"2008-11-19T01:35:38Z","isPatch":false,"sender":{"key":"garyyang6@yahoo.com","avatar":null},"body":"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.\n\n\n--- On Tue, 11/18/08, Gary Yang <garyyang6@yahoo.com> wrote:\n\n> From: Gary Yang <garyyang6@yahoo.com>\n> Subject: Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.\n> To: \"Shawn O. Pearce\" <spearce@spearce.org>\n> Cc: git@vger.kernel.org\n> Date: Tuesday, November 18, 2008, 5:28 PM\n> inuxgit01 is the box I want to make public repository. At my\n> own box, linux12, I ran the command, git push\n> linuxgit01:/pub/git/u-boot.git master\n> \n> What I did wrong?\n> \n> Thanks.\n> \n> --- On Tue, 11/18/08, Gary Yang <garyyang6@yahoo.com>\n> wrote:\n> \n> > From: Gary Yang <garyyang6@yahoo.com>\n> > Subject: Re: How to make public repository\n> GIT_DIR=my-git.git git-init Command not found.\n> > To: \"Shawn O. Pearce\"\n> <spearce@spearce.org>\n> > Cc: git@vger.kernel.org\n> > Date: Tuesday, November 18, 2008, 5:21 PM\n> > The command, \"git --git-dir=my-git.git init\"\n> > works. But, I got another error.\n> > \n> >\n> http://manpages.ubuntu.com/manpages/intrepid/man7/gitcore-tutorial.html\n> > \n> > The document says that, Your \"public\n> repository\"\n> > is now ready to accept your changes. Come back to the\n> > machine you have your private repository. From there,\n> run\n> > this\n> >         command:\n> >  \n> >             $ git push\n> > <public-host>:/path/to/my-git.git master\n> > \n> > \n> > However, I got \"fatal: Not a git repository\"\n> > error. Do you have any idea?\n> > \n> > \n> > git push linuxgit01:/pub/git/u-boot.git master\n> > fatal: Not a git repository\n> > \n> > inuxgit01 is the box I ran the command, \"git\n> > --git-dir=u-boot.git init\".\n> > \n> > Thanks,\n> > \n> > \n> > Gary\n> > \n> > \n> > \n> > \n> > --- On Tue, 11/18/08, Shawn O. Pearce\n> > <spearce@spearce.org> wrote:\n> > \n> > > From: Shawn O. Pearce <spearce@spearce.org>\n> > > Subject: Re: How to make public repository\n> > GIT_DIR=my-git.git git-init Command not found.\n> > > To: \"Gary Yang\"\n> <garyyang6@yahoo.com>\n> > > Cc: git@vger.kernel.org\n> > > Date: Tuesday, November 18, 2008, 3:19 PM\n> > > Gary Yang <garyyang6@yahoo.com> wrote:\n> > > > Hi,\n> > > > \n> > > > I want to make a public repository. I\n> followed\n> > the\n> > > instructions in gitcore-tutorial. I typed\n> > > \"GIT_DIR=my-git.git git init\" per\n> > instruction.\n> > > But, I got command not found. I do not think this\n> is\n> > the\n> > > correct command. How should I do? I use C-Shell.\n> > > > \n> > > >\n> > >\n> >\n> http://manpages.ubuntu.com/manpages/intrepid/man7/gitcore-tutorial.html\n> > > > \n> > > > %mkdir my-git.git\n> > > > %GIT_DIR=my-git.git git init\n> > > > \n> > > > GIT_DIR=my-git.git: Command not found.\n> > > \n> > > Instead you can do:\n> > > \n> > >   $ git --git-dir=my-git.git init\n> > > \n> > > The --git-dir option does the same thing that\n> GIT_DIR=\n> > was\n> > > doing\n> > > in a Bourne shell.\n> > > \n> > > -- \n> > > Shawn.\n> > \n> > \n> >       \n> > --\n> > To unsubscribe from this list: send the line\n> > \"unsubscribe git\" in\n> > the body of a message to majordomo@vger.kernel.org\n> > More majordomo info at \n> > http://vger.kernel.org/majordomo-info.html\n> \n> \n>       \n> --\n> To unsubscribe from this list: send the line\n> \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at \n> http://vger.kernel.org/majordomo-info.html\n\n\n      \n"},{"id":"96156","messageId":"81b0412b0811190538t4c16b9dagc14ff84bf6689616@mail.gmail.com","threadId":"16385","inReplyTo":"138223.4849.qm@web37905.mail.mud.yahoo.com","subject":"Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2008-11-19T13:38:12Z","receivedAt":"2008-11-19T13:38:12Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"2008/11/19 Gary Yang <garyyang6@yahoo.com>:\n> Hi,\n>\n> I want to make a public repository. I followed the instructions in gitcore-tutorial.\n> I typed \"GIT_DIR=my-git.git git init\" per instruction. But, I got command not found.\n> I do not think this is the correct command. How should I do? I use C-Shell.\n\ngit --bare init\n"}]}