致力于git有致命的pathspec错误

问题描述 投票:0回答:1

我已经更新了现有文件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
1个回答
0
投票

找到问题的根源 - 预先提交git hook。

© www.soinside.com 2019 - 2024. All rights reserved.