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

Re: bare --init Vs --init bare

From
LRLuciano Rocha <luciano@eurotux.com>
Date
May 19, 2008, 20:10 UTC
Message-ID
<20080519201049.GA20981@bit.office.eurotux.com>
In-Reply-To
<8aa486160805191232m76bbc7detdcd2d459c8e572cd@mail.gmail.com>
On Mon, May 19, 2008 at 09:32:21PM +0200, Santi Béjar wrote:
Show 23 quoted lines
> On Mon, May 19, 2008 at 7:53 PM, Luciano Rocha <luciano@eurotux.com> wrote:
> >
> > Hello,
> >
> 
> > This is odd:
> > $ git init --bare
> > usage: git-init [-q | --quiet] [--template=<template-directory>] [--shared]
> > $ git --bare init
> > Initialized empty Git repository in /tmp/1/
> 
> The first is a flag to the init subcommand (man git-init), and the
> other is a flag to git (man git).
> 
> See also:
> 
> http://www.google.com/search?q=%22git+init+--bare%22+%22git+--bare+init%22
> 
> or equivalent
> 
> http://kerneltrap.org/mailarchive/git/2007/10/15/344050
> "should git command and git-command be equivalent?"
> 
Ok, I understand.

Still, there's a --bare command to git clone, and I had only tried git init --bare, not the other form, and it always failed. Only today did I learn I could do a git --bare init, from a colleague of mine.

I'd suggest allowing git init --bare, or documenting the --bare init option.

Regards, Luciano Rocha

-- 
Luciano Rocha <luciano@eurotux.com>
Eurotux Informática, S.A. <http://www.eurotux.com/>
Previous: Santi BéjarNext: Luciano Rocha
Message 3 of 12 in “bare --init Vs --init bare”
  1. Luciano RochaMay 19, 2008
  2. Santi BéjarMay 19, 2008
  3. Luciano RochaMay 19, 2008
  4. git-init: inform user of `git --bare init' optionLuciano Rocha, May 20, 2008
  5. Junio C HamanoMay 23, 2008
  6. Luciano RochaMay 23, 2008
  7. git-init: treat option `--bare'Luciano Rocha, May 28, 2008
  8. Luciano RochaMay 28, 2008
  9. Junio C HamanoMay 29, 2008
  10. Luciano RochaMay 29, 2008
  11. Johannes SchindelinMay 29, 2008
  12. Junio C HamanoMay 29, 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.