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 10:55:34 +0200 [thread overview]
Message-ID: <vpqk5pnmoah.fsf@bauges.imag.fr> (raw)
In-Reply-To: <20071016084800.270917E6F@mail.kooxoo.com> (franky's message of "Tue\, 16 Oct 2007 16\:47\:58 +0800")
"franky" <yinping@kooxoo.com> writes:
>> 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).
> I try "git st", but it complains "git: 'st' is not a git-command".
Sure, I'm talking about aliases, so what I meant is that I had
[alias]
st = status
in ~/.gitconfig.
> Instead, I use gt-beginning abbreviation for some command frequently used
> such as gtci->git-commit, gtco-->git-checkout, gtst-->git-status,
> gtdi->git-diff, gtinit->git-init
>
> So it will be wonderful if I can use "gtinit --bare"
You can't without defining gtinit as a simple-but-not-totally-trivial
wrapper script.
But you can define an alias to init, to enable you to type
$ git --bare i
(that said, it could be a good idea for "git init" to accept --bare as
an option too).
--
Matthieu
next prev parent reply other threads:[~2007-10-16 8:56 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
2007-10-16 8:47 ` franky
2007-10-16 8:55 ` Matthieu Moy [this message]
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=vpqk5pnmoah.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.