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

When using git commit in a path with spaces, it prompts Cannot read "xxx": No such file or directory

From
L2750558108@outlook.com <l2750558108@outlook.com>
Date
Feb 16, 2023, 16:09 UTC
Message-ID
<BY5PR14MB35605DDFA6C7F6CD9DF89202B1A09@BY5PR14MB3560.namprd14.prod.outlook.com>

In Windows When using git commit in a path with spaces, it prompts Cannot read "xxx": No such file or directory

Reduce: 1.Init a respository at "C:/te st"; 2.cd "C:/te st" 3.git add . 4.git commit 5.fatal: could not read 'C:/te': No such file or directory

Next: Johannes Schindelin
Message 1 of 2 in “When using git commit in a path with spaces, it prompts Cannot read "xxx": No such file or directory”
  1. L2750558108@outlook.comFeb 16, 2023
  2. Johannes SchindelinMar 27, 2023

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.