Message "pathspec XXX did not match any files" Is Displayed
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
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot