(git)错误error: ‘<filename>‘ does not have a commit checked out

(git)错误error: ‘’ does not have a commit checked out

原因:子项目中 存在 .git文件,删除即可

操作方式: 必须导航到子文件夹,然后运行此命令 rm -rf .git

Yes, this is correct. I have .git initialized in my subfolder. I had
to navigate into the subfolder and then I ran this command rm -rf .git
– Nagaraj Alagusundaram Oct 10, 2022 at 11:25

猜你喜欢

转载自blog.csdn.net/aaxzsuj/article/details/130484507