This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: git alias for "status" not working


On 3/27/2017 8:23 AM, Eliot Moss wrote:
> On 3/27/2017 8:17 AM, David Dombrowsky wrote:
>> I'm not sure how to debug this one.  I have a ~/.gitconfig that sets up
>> an alias for "git status" using the simple rule:
>>
>> [alias]
>>     st = status
>>
>> Yet, something is failing when I run it from the command line:
>>
>> $ git st
>> [nothing happens]
>> $ git status
>> On branch 3.3-dev-davidd
>> Your branch is ahead of 'origin/3.3-dev-davidd' by 2 commits.
>> [... etc ...]
>>
>> Any ideas?
> 
> st is also a prefix of "stash".  Maybe it does not like aliases
> that are prefixes of other commands?

Also check the line endings of the config file.  Make sure they are UNIX
line endings instead of Windows.

-- 
cyg Simple

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]