Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

On this page
Help Center/ CodeArts Repo/ FAQs/ Troubleshooting/ Message "pathspec XXX did not match any files" Is Displayed

Message "pathspec XXX did not match any files" Is Displayed

Updated on 2023-12-04 GMT+08:00

Symptom

When a user runs git add, the message pathspec XXX did not match any files is displayed.

Analysis

There is no README.md file on the local computer. The git add command is used to add an existing file to the stage. It cannot create a file.

Solution

Method 1: Manually create the README.md file in the local repository and run git add.

Method 2: Run touch README.md to create the README.md file, and run git add.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback