Re: git alias for options
- From
Michael J Gruber <git@drmicha.warpmail.net>
- Date
- Feb 17, 2017, 13:15 UTC
- Message-ID
- <e6b3b3fa-2993-2850-a682-c58312a8385c@drmicha.warpmail.net>
- In-Reply-To
- <CAM_JFCz+9mxp37BTT7XPJ0fMd41DdbAxnvQF7id9msH+SDe6_Q@mail.gmail.com>
hIpPy venit, vidit, dixit 17.02.2017 09:23:
Show 6 quoted lines
> Git has aliases for git commands. Is there a (an inbuilt) way to alias > options? If not, what is the reason? > > Thanks, > hippy >
You can setup an alias for "command with options", for example:
git help s `git s' is aliased to `status -s -b -uno .'
As you see here, this can include non-option arguments such as the pathsepc '.'.
You cannot alias options independent of the command, though.
Michael