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

Git thinks a failing command doesn't exist

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Aug 11, 2010, 19:12 UTC
Message-ID
<AANLkTin7E-v9TYd1KoD73knnSwSMy-V-pvS0TmpQd72M@mail.gmail.com>
Has this been noted before:
    $ git rebase --continue
    .: 986: Can't open /home/avar/g/git/.git/rebase-merge/author-script
    git: 'rebase' is not a git command. See 'git --help'.
    Did you mean this?
            rebase

Rebase failed, but the help mechanism seems to just test the exit code, or something similar.

Perhaps help_unknown_cmd could just check if the command it's suggesting == what it says doesn't exist, if so the command probably failed, but maybe there's a better solution.

Next: Jeff King
Message 1 of 5 in “Git thinks a failing command doesn't exist”
  1. Ævar Arnfjörð BjarmasonAug 11, 2010
  2. Jeff KingAug 11, 2010
  3. Ævar Arnfjörð BjarmasonAug 11, 2010
  4. Jeff KingAug 11, 2010
  5. Ævar Arnfjörð BjarmasonAug 11, 2010

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.