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

Re: bare --init Vs --init bare

From
SBSanti Béjar <sbejar@gmail.com>
Date
May 19, 2008, 19:32 UTC
Message-ID
<8aa486160805191232m76bbc7detdcd2d459c8e572cd@mail.gmail.com>
In-Reply-To
<20080519175313.GA17305@bit.office.eurotux.com>
On Mon, May 19, 2008 at 7:53 PM, Luciano Rocha <luciano@eurotux.com> wrote:
>
> Hello,
>
Show 5 quoted lines
> 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?"

Santi
Show 16 quoted lines
>
> My git version:
> $ git --version
> git version 1.5.5.1.318.gc99b
>
> (Has two patches on top of origin's
> 377d9c409ffe0f0d994b929aeb94716139207b9d, setting default prefix in
> Makefile.)
>
> Regards,
> Luciano Rocha
>
> --
> Luciano Rocha <luciano@eurotux.com>
> Eurotux Informática, S.A. <http://www.eurotux.com/>
>
Previous: Luciano RochaNext: Luciano Rocha
Message 2 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.