我已经更新了一个现有的文件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 钩子。