小编Cat*_*way的帖子

Git 子模块显示新提交,子模块状态表示没有提交

在 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

76
推荐指数
2
解决办法
6万
查看次数

标签 统计

git ×1