【发布时间】:2020-09-17 09:09:09
【问题描述】:
这就是我使用 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调用的任何git钩子吗? -
使用不带
-m的git commit打开编辑器;如果提交再次失败,如果可能是由于钩子 -
用双引号试试。
标签: git git-commit