git commit 报 No file or directory

使用 git commit 提交到本地库是,报了 `No file or directory`。

此情况是在公司内遇到的,根据公司保密协议等要求,没有错误的截图。只能给出解决思路。

解决方法:

找到本地 .git 下的 hooks 文件夹, 然后把里面的非 .sample 后缀名的文件删掉就可以正常 git commit 了。

 

posted @ 2020-04-21 22:53  莫问、前程  阅读(931)  评论(0编辑  收藏  举报