[git error] git add added to the staging area error: fatal: pathspec 'xxx' did not match any files

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:
Insert image description here

2. Problem solving:

Solving this problem is simple, just enclose the folder name with spaces in double quotes:
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_42640280/article/details/127528824