Re: bare --init Vs --init bare
- From
- Luciano 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/>