相关疑难解决方法(0)

无法跟踪Git子模块中的文件

问题:当我没有文件时,也没有任何文件时,将文件添加./shells/smallApps/*到Git ../.git/./.git/info/exclude.gitignore

这个问题是基于这个问题没有完全解决的问题.

我跑

$git status                                                                                                                                          ~/bin
# On branch master
nothing to commit (working directory clean)
$git ls-files                                                                                                                                        ~/bin
Screen/dev/vim-open.screen
--- cut ---
Run Code Online (Sandbox Code Playgroud)

我注意到我的Git上没有"shells/smallApps/*"文件

$ls shells/smallApps/                                                                                                                                ~/bin
devTodo     extract     
                                                                                                                                             ~/bin
Run Code Online (Sandbox Code Playgroud)

我想通过运行将它们添加到我的Git中

$git add shells/smallApps/devTodo shells/smallApps/extract
fatal: Path 'shells/smallApps/devTodo' is in submodule 'shells/smallApps'
$git add .         
Run Code Online (Sandbox Code Playgroud)

我注意到由于某种原因,这些文件没有添加到我的Git中

$git status                                                                                                                                          ~/bin 
# On branch master
nothing to commit (working directory clean)
Run Code Online (Sandbox Code Playgroud)

我没有.git/info/exclude和.gitignore -files的文件.

最后警告是什么意思?

git add git-submodules

50
推荐指数
1
解决办法
3万
查看次数

标签 统计

add ×1

git ×1

git-submodules ×1