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