我有一个带有子模块的 git 存储库。我需要弹出我之前隐藏的更改。但是,这会导致子模块引用的合并冲突。
我想保留我的更改,除了子模块。对于大多数代码文件,我可以通过编辑冲突文件来解决冲突,但这似乎不是子模块的选项。
如何解决合并冲突并仍然从存储中提取我的更改?
$ git stash pop
warning: Failed to merge submodule some-submodule (commits don't follow merge-base)
Auto-merging some-code
Auto-merging some-submodule
CONFLICT (submodule): Merge conflict in some-submodule
$ git status
# On branch some-branch
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: some-code
#
# Unmerged paths:
# (use "git reset HEAD <file>..." to unstage)
# (use "git add/rm <file>..." as appropriate to mark resolution)
#
# both modified: some-submodule