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

Re: How to create empty CENTRAL git with master / development branch ?

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 4, 2012, 17:16 UTC
Message-ID
<7vhawza046.fsf@alter.siamese.dyndns.org>
In-Reply-To
<201204040711.q347BTXg025316@VM-MailSafe-02.soltecsis.com>
"J. Bakshi" <joydeep.bakshi@infoservices.in> writes:
Show 8 quoted lines
> On Tue, 03 Apr 2012 16:54:19 +0200
> Holger Hellmuth <hellmuth@ira.uka.de> wrote:
>
>> > git --bare init project_name.git
>> 
>> you probably meant "git init --bare project_name.git"
>
> Yes right. Sorry for the mistake.

Just on this part. "git --bare init" is technially more kosher, but it looks somewhat strange, so "git init" has a special case code to pretend as if the user said "git --bare init" when "git init --bare" was given.

So both should work fine.
Previous: J. BakshiNext: Holger Hellmuth
Message 5 of 7 in “How to create empty CENTRAL git with master / development branch ?”
  1. J. BakshiApr 3, 2012
  2. Holger HellmuthApr 3, 2012
  3. Tomas CarneckyApr 3, 2012
  4. J. BakshiApr 4, 2012
  5. Junio C HamanoApr 4, 2012
  6. Holger HellmuthApr 4, 2012
  7. Holger HellmuthApr 4, 2012

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.