git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[Feature Request] Did you mean `git ...`? should ask user for feedback, not return to the prompt

From
ELEric Andrew Lewis <eric.andrew.lewis@gmail.com>
Date
Dec 19, 2013, 22:38 UTC
Message-ID
<CAMi+fEnVekrWYrG6sGiRPmOXxaJ1-Y9xd83W7Wvw3GwWz8DuBQ@mail.gmail.com>

Git is smart enough to realize when you make a spelling error and enter a non-existent git command. Since you probably do mean what it suggests, it follows that the user would want to immediately say “yes, I did want to do that,” rather than return to the command line to enter the command again.

e.g.

$ git psh git: 'psh' is not a git command. See 'git —help'. Did you mean 'push'[y/n]?

-- Eric Andrew Lewis

Next: Jonathan Nieder
Message 1 of 2 in “[Feature Request] Did you mean `git ...`? should ask user for feedback, not return to the prompt”
  1. Eric Andrew LewisDec 19, 2013
  2. Jonathan NiederDec 19, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.