Git Submodule: Already Exists in the Index
目录
警告
本文最后更新于 2024-01-11,文中内容可能已过时。
Git 报错 “git submodule: already exists in the index” 的解决方法。
问题
在 hugo-fixit/docs,里我增通过软连接的方式引入了 hugo-fixit/FixIt,位于 themes/FixIt 目录下。
然后为了把主题开发和主题文档分离(#404),我想通过 git submodule 的方式引入主题,于是我先把 themes/FixIt 目录删除,然后执行:
| |
结果报错:
| |
解决方法
| |
Buy me a coffee~
支付宝
微信