我已经更新了现有文件myfile.js,然后运行:
myfile.js
git add . git status #I see my file listed under "Changes to be committed" git commit -m "Updated xyz"
输出是:
/myfile.js 205ms fatal: pathspec '%' did not match any files
我以前从未见过这个。有什么建议?
找到问题的根源 - 预先提交git hook。