Git commit encountered error: pathspec (Fixed)

 This is the first problem I've encountered as a rookie just learning to use git.
 The problem is that after git clone a repository, it adds two files to it, but when git commits, it says error: pathspec 'add README.txt.........' did not match any file(s) known to git.
 When I looked at the command more closely, I found that I was missing the -m parameter in my git commit, and the error was: git commit 'add README.txt'.
 The error is: git commit 'add README.txt_.....'
 It should read: git commit -m 'add README.txt......'

Read More: