git add出现 "fatal: in unpopulated submodule XXX" 错误

傷城~ 2022-04-23 08:46 234阅读 0赞

git add出现 “fatal: in unpopulated submodule XXX” 错误:

当前处于: F:\217my_optLogs\001系统相关\系统设计\007\oschina\ydgw2407.github.io\themes
下面有目录2个:

hexo-theme-matery
landscape

因为hexo-theme-matery是从另一个第三方的仓库克隆的,在执行git add的时候”fatal: in unpopulated submodule hexo-theme-matery” 错误

解决办法,在当前目录打开git bash,执行:

  1. git rm -rf --cached hexo-theme-matery
  2. git add hexo-theme-matery/*

可以看到该目录已经add成功。

发表评论

表情:
评论列表 (有 0 条评论,234人围观)

还没有评论,来说两句吧...

相关阅读