the git occured serveral new commits like:
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: bbi (new commits)
modified: bbif (new commits)
modified: c2c (new commits)
modified: e6 (new commits)
modified: nodetestif (new commits)
and I don’t know how it comes and the git clean -xdf,git checkout .,git checkout – are all don’t work.
So how to fix it?
Just run:
$ git submodule update
This will revert the submodule the to old commit (specified in parent-repo), without updating the parent-repo with the latest version of the submodule.

本文介绍了一种解决Git子模块出现未提交更改的方法。通过使用`gitsubmoduleupdate`命令可以有效地将子模块回滚到父仓库指定的旧提交状态,而不会更新父仓库中的子模块最新版本。

2160

被折叠的 条评论
为什么被折叠?



