请参阅下面的原始问题的实线.
我的本地目录中有一个未跟踪的文件夹.当我跑步时git status,我得到:
Changed but not updated:
modified: vendor/plugins/open_flash_chart_2 (modified content, untracked content)
Run Code Online (Sandbox Code Playgroud)
当我输入git add vendor/plugins/open_flash_chart_2然后再试git status一次时,它仍然没有说明.这是怎么回事?
以下是我最近半小时的简单摘要:
发现我的Github仓库没有跟踪我的vendor/plugins/open_flash_chart_2插件.具体来说,没有内容,它在文件夹图标上显示绿色箭头.
试着 git submodule init
No submodule mapping found in .gitmodules for path 'vendor/plugins/open_flash_chart_2'
Run Code Online (Sandbox Code Playgroud)试着 git submodule add git://github.com/korin/open_flash_chart_2_plugin.git vendor/plugins/open_flash_chart_2
vendor/plugins/open_flash_chart_2 already exists in the index
Run Code Online (Sandbox Code Playgroud)git status
modified: vendor/plugins/open_flash_chart_2 (untracked content)
Run Code Online (Sandbox Code Playgroud).gitmodules在我的存储库/本地目录中命名的任何文件都被搜索但找不到.
我需要做些什么才能使我的子模块正常工作,以便git可以正常开始跟踪?
这可能是无关的(我把它包括在它有帮助的情况下),但每次我输入git commit -a而不是我平时git commit -m "my comments",它会抛出一个错误:
E325: ATTENTION
Found a …Run Code Online (Sandbox Code Playgroud)