git commit 报错pathspec ‘commit‘‘ did not match any file(s) known to git

When submitting with git, an error is reported

pathspec 'commit'' did not match any file(s) known to git

Later, I found that the error was submitted with single quotes, and changed to double quotes to succeed.

git commit -m "first commit"

Guess you like

Origin blog.csdn.net/weixin_44401120/article/details/114535567