在 git 存储库中,我设置了 .gitmodules 文件以引用 github 存储库:
[submodule "src/repo"]
path = src/repo
url = repourl
Run Code Online (Sandbox Code Playgroud)
当我在这个 repo 上“git status”时,它显示:
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: src/repo (new commits)
Run Code Online (Sandbox Code Playgroud)
如果我 cd 进入 src/repo 和 repo 上的 git status,它说没有什么可提交的。
为什么我的顶级 git repo 抱怨?
git ×1