Git commit -m ‘Add Readme’ error: pathspec ‘Readme” did not match any file(s) known to git

Reason: git commit – M followed by single quotation mark in MS DOS cannot contain spaces

Solution:

Method 1. Remove the space

Method 2. Use double quotation marks

Similar Posts: