问题描述
这就是我用git提交的方式:
git add -A
git commit -m 'added theme color and image error handling'
但是它会导致提交消息错误:
error: pathspec 'theme' did not match any file(s) kNown to git
error: pathspec 'color' did not match any file(s) kNown to git
error: pathspec 'and' did not match any file(s) kNown to git
error: pathspec 'image' did not match any file(s) kNown to git
error: pathspec 'error' did not match any file(s) kNown to git
error: pathspec 'handling'' did not match any file(s) kNown to git
如何用git编写完整的提交消息?
解决方法
如果您是窗口用户,只需使用双引号而不是单引号:
git commit -m“初始提交”,而不是git commit -m“初始提交”