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

'git reset -- NonExistingFile' succeeds

From
AMAlexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
Date
Oct 30, 2019, 16:29 UTC
Message-ID
<f6d853ce-6f27-ed58-a850-d9a6f245509a@syntevo.com>
Is that expected?
Other commands seem to not like that:

$ git checkout NonExistingFile error: pathspec 'NonExistingFile' did not match any file(s) known to git

Next: Junio C Hamano
Message 1 of 4 in “'git reset -- NonExistingFile' succeeds”
  1. Alexandr MiloslavskiyOct 30, 2019
  2. Junio C HamanoNov 2, 2019
  3. Alexandr MiloslavskiyNov 4, 2019
  4. Junio C HamanoNov 6, 2019

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.