Skip to contentSkip to conversation

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

DISCUSSION Gary Yang 3 participants 6 messages Jun 15, 2016

lore
Share & tools
lore

Gary Yang

author
#0 lore raw

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

#1 lore raw
Quoted 10 lines · Gary Yang

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.

Signature · 1 line
Shawn.
author
#2 lore raw

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

Quoted 32 lines · Shawn O. Pearce

From: Shawn O. Pearce <[email protected]>
Subject: Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.
To: "Gary Yang" <[email protected]>
Cc: [email protected]
Date: Tuesday, November 18, 2008, 3:19 PM

Quoted 3 lines · Gary Yang

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.

Quoted 2 lines

http://manpages.ubuntu.com/manpages/intrepid/man7/gitcore-tutorial.html

Quoted 5 lines

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

Signature · 1 line
Shawn.
author
#3 lore raw

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.

Quoted 88 lines · Gary Yang

From: Gary Yang <[email protected]>
Subject: Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.
To: "Shawn O. Pearce" <[email protected]>
Cc: [email protected]
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

Quoted 2 lines · <[email protected]> wrote:

From: Shawn O. Pearce <[email protected]>
Subject: Re: How to make public repository

GIT_DIR=my-git.git git-init Command not found.

Quoted 7 lines

To: "Gary Yang" <[email protected]>
Cc: [email protected]
Date: Tuesday, November 18, 2008, 3:19 PM

Quoted 3 lines · Gary Yang

Hi,

I want to make a public repository. I followed

the

Quoted 2 lines

instructions in gitcore-tutorial. I typed
"GIT_DIR=my-git.git git init" per

instruction.

Quoted 1 line

But, I got command not found. I do not think this is

the

Quoted 4 lines

correct command. How should I do? I use C-Shell.

Quoted 2 lines

http://manpages.ubuntu.com/manpages/intrepid/man7/gitcore-tutorial.html

Quoted 11 lines
Quoted 5 lines

%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

Quoted 5 lines

doing
in a Bourne shell.

Signature · 1 line
Shawn.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html

author
#4 lore raw

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.

Quoted 123 lines · Gary Yang

From: Gary Yang <[email protected]>
Subject: Re: How to make public repository GIT_DIR=my-git.git git-init Command not found.
To: "Shawn O. Pearce" <[email protected]>
Cc: [email protected]
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 <[email protected]>

Quoted 2 lines · wrote:

From: Gary Yang <[email protected]>
Subject: Re: How to make public repository

GIT_DIR=my-git.git git-init Command not found.

Quoted 1 line

To: "Shawn O. Pearce"

<[email protected]>

Quoted 6 lines

Cc: [email protected]
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

Quoted 2 lines

The document says that, Your "public

repository"

Quoted 2 lines

is now ready to accept your changes. Come back to the machine you have your private repository. From there,

run

Quoted 25 lines

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

Quoted 7 lines

--- On Tue, 11/18/08, Shawn O. Pearce

Quoted 2 lines · <[email protected]> wrote:

From: Shawn O. Pearce <[email protected]>
Subject: Re: How to make public repository

GIT_DIR=my-git.git git-init Command not found.

Quoted 1 line

To: "Gary Yang"

<[email protected]>

Quoted 6 lines
Quoted 6 lines

Cc: [email protected]
Date: Tuesday, November 18, 2008, 3:19 PM

Quoted 3 lines · Gary Yang

Hi,

I want to make a public repository. I

followed

Quoted 5 lines

the

Quoted 2 lines

instructions in gitcore-tutorial. I typed
"GIT_DIR=my-git.git git init" per

instruction.

Quoted 1 line

But, I got command not found. I do not think this

is

Quoted 6 lines

the

Quoted 4 lines

correct command. How should I do? I use C-Shell.

Quoted 2 lines

http://manpages.ubuntu.com/manpages/intrepid/man7/gitcore-tutorial.html

Quoted 11 lines
Quoted 11 lines
Quoted 5 lines

%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=

Quoted 9 lines

was

Quoted 5 lines

doing
in a Bourne shell.

Signature · 1 line
Shawn.
Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected] 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 [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html

#5 lore raw
In reply to Gary Yang

2008/11/19 Gary Yang <[email protected]>:

Quoted 5 lines

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