如何在使用 git 提交时写完整消息?
How to write full message while commiting with git?
这就是我对 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 编写完整的提交消息?
如果您是 window 用户:
,只需使用 双引号而不是单引号
git commit -m "initial commit" 而不是 git commit -m 'initial commit'
这就是我对 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 编写完整的提交消息?
如果您是 window 用户:
,只需使用 双引号而不是单引号git commit -m "initial commit" 而不是 git commit -m 'initial commit'