Git 告诉我我不能将一些文件添加到索引中,因为它们位于子模块中。我认为这些文件确实曾经在子模块中,但我找不到任何迹象表明它们仍然在子模块中。如果我 grep 为 .gitmodules,我什么也找不到。如何消除这个幻像子模块,以便将文件添加到我的索引中?
ryan@ryan-HP-ProBook-4530s:/opt/staging/my.domain.com/public/profiles/mei_main$ ls
civicrm_starter.sql mei_main.info mei_main.install mei_main.profile modules themes
ryan@ryan-HP-ProBook-4530s:/opt/staging/my.domain.com/public/profiles/mei_main$ git add themes
fatal: Path 'profiles/mei_main/themes' is in submodule 'profiles/mei_main'
ryan@ryan-HP-ProBook-4530s:/opt/staging/my.domain.com/public/profiles/mei_main$ ls -la
total 4704
drwxr-xr-x 4 48 502 4096 Aug 19 11:58 .
drwxr-xr-x 6 48 502 4096 Aug 19 11:49 ..
-rwxr-xr-x 1 503 502 4786089 Apr 29 13:43 civicrm_starter.sql
-rwxr-xr-x 1 48 502 2985 Jun 4 02:20 mei_main.info
-rwxr-xr-x 1 48 502 579 Jun 4 02:20 mei_main.install
-rwxr-xr-x 1 48 502 736 Jun 4 02:20 mei_main.profile
drwxr-xr-x 4 48 502 4096 Aug 26 17:26 modules
drwxr-xr-x 4 48 502 4096 Aug 16 10:23 themes
ryan@ryan-HP-ProBook-4530s:/opt/staging/my.domain.com/public/profiles/mei_main$ cd ../../
ryan@ryan-HP-ProBook-4530s:/opt/staging/my.domain.com/public$ grep path .gitmodules | sed 's/.*= //'
grep: .gitmodules: No such file or directory