删除子目录下.git后,依然无法提交子目录下的文件
git rm --cached <目录/子目录>
执行完,不报错然后提交即可, 如果报错那就还得另想辙了
如果执行git rm --cached directory 提示fatal: Unable to create ‘xx/.git/index.lock’: File exists. 执行rm -f xx/.git/index.lock后解决