1. Problem description:
The name of the folder that git add to the staging area contains spaces, and an error will be prompted at this time.
fatal: pathspec ‘xxx’ did not match any files
Submit the staging area error as shown in the figure below:
2. Problem solving:
Solving this problem is simple, just enclose the folder name with spaces in double quotes: