如何解决使用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编写完整的提交消息?
解决方法
如果您是窗口用户,只需使用双引号而不是单引号:
git commit -m“初始提交”,而不是git commit -m“初始提交”
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。