From: Matthieu Moy <Matthieu.Moy@imag.fr>
To: "franky" <yinping@kooxoo.com>
Cc: <git@vger.kernel.org>
Subject: Re: should git command and git-command be equivalent?
Date: Tue, 16 Oct 2007 09:48:28 +0200 [thread overview]
Message-ID: <vpqprzfsdo3.fsf@bauges.imag.fr> (raw)
In-Reply-To: <20071016032240.AD2FD7E80@mail.kooxoo.com> (franky's message of "Tue\, 16 Oct 2007 11\:22\:39 +0800")
"franky" <yinping@kooxoo.com> writes:
> I use git-init frequently and it confuses me for a long time that I
> can't init a bare repository.
> I just found I can do that by "git -bare init". However, I get used
> to "git-init" and I always tried "git-init -bare" (of course failed)
> And I thought git-init and "git init" were always the same as most
> newbies of git.
AFAIK, git-init and "git init" are equivalent, but as you noticed
already, the advantage of "git init" is that you can pass options to
the git command, not only to the "init" subcommand.
Also, you can use aliases (for example, I type "git st" to do "git
status") with "git whatever", but not with "git-whatever" (unless you
define the alias in your shell).
The git-whatever syntax is more or less deprecated, although I guess
it will stay forever at least for compatibility.
--
Matthieu
next prev parent reply other threads:[~2007-10-16 7:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-16 3:22 should git command and git-command be equivalent? franky
2007-10-16 7:48 ` Matthieu Moy [this message]
2007-10-16 8:47 ` franky
2007-10-16 8:55 ` Matthieu Moy
2007-10-16 12:28 ` David Symonds
2007-10-16 14:46 ` Matthieu Moy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vpqprzfsdo3.fsf@bauges.imag.fr \
--to=matthieu.moy@imag.fr \
--cc=git@vger.kernel.org \
--cc=yinping@kooxoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.