threads / discuss / 49178

Feature request: detecting mistyped command and isdentical possible matches

Subject: Feature request: detecting mistyped command and isdentical possible matches

## tl;dr

One message between Aug 21, 2018 and Aug 21, 2018.

replies: 0people: 1as markdown or json

Erik Huizinga· Aug 21, 2018, 13:01 UTC · lore
Hi!

I have an alias for 'git status': 'git st'. I also have configured that an unrecognised (mistyped) Git command runs the closest match. In this case I did the following:

''' $ git stt git: 'stt' is not a git command. See 'git --help'.

The most similar commands are
  st
  status
'''

In this particular case it would have been nice if Git also understood that 'git st' and 'git status' are equivalent in my configuration, so that it shouldn't have to warn me about them as different matches, but instead just run any of them.

Thank you for Git. Maybe I'll see this feature in the future!

Best, Erik

← back to recent threads