如何解决如何找到删除 git 子模块的位置?
Our project 添加了一个子模块 fiosdk_kotlin
,现在最近的合并删除了它,但我不明白为什么 git 会将其删除视为“琐碎合并”,因为 {{1} } 把它放在我理解的意思与 git instaweb
一样不产生块。
git show
现在来探索子模块发生了什么:
$ git show 6de05c
commit 6de05c46fb6dd19bf0d834290de8a3c36da22da3
Merge: 2b35c1a67 323b5e121
所以应该在删除模块的第二个分支上的某个地方进行提交,对吗?
$ git diff 6de05c46f...06ef8cfec -- fiosdk_kotlin
$ git diff 06ef8cfec...6de05c46f -- fiosdk_kotlin
diff --git a/fiosdk_kotlin b/fiosdk_kotlin
deleted file mode 160000
index 698b2b41f..000000000
--- a/fiosdk_kotlin
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 698b2b41f4c7581bb4934da5d37f253d90963278
应该显示子模块的所有添加或删除吗?它显示了许多根本不显示补丁的提交(合并提交?)。我可以用 git log --all --full-history --patch -- .gitmodules
过滤掉它:
-Sfiosdk_kotlin
什么是黑客?它只会被添加,但它消失了?
事实证明,它仍然存在于 .gitmodules 中,但没有固定到任何修订版或其他内容??:
$ git log --all --full-history --patch -Sfiosdk_kotlin -- .gitmodules
commit 1d6d2af7bcfc043e8a7efb14cecbdd6a9595a1de
Author: Leo Wandersleb <leo.wandersleb@mycelium.com>
Date: Wed Sep 16 12:35:48 2020 -0300
add fio as git submodule
remove copied folders androidfioserializationprovider and fiosdk
fix minSdk via main build.gradle
restore String.isFioActor() in FIOToken
diff --git a/.gitmodules b/.gitmodules
index d001539c2..fafdcaa6f 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,6 @@
[submodule "wallet-android-modularization-tools"]
path = wallet-android-modularization-tools
url = git@github.com:mycelium-com/wallet-android-modularization-tools
+[submodule "fiosdk_kotlin"]
+ path = fiosdk_kotlin
+ url = https://github.com/fioprotocol/fiosdk_kotlin
因为我没有在 $ cat .gitmodules
[submodule "wallet-android-modularization-tools"]
path = wallet-android-modularization-tools
url = git@github.com:mycelium-com/wallet-android-modularization-tools
[submodule "fiosdk_kotlin"]
path = fiosdk_kotlin
url = https://github.com/fioprotocol/fiosdk_kotlin
$ git submodule
de7973e0781a8f6245b345999b6d2b7c6c45be6b wallet-android-modularization-tools (remotes/origin/api29submodule)
中显示修改,但在 git log
中,我尝试了这个:
git diff
我再次看到子模块的添加,但没有看到它的删除。我错过了什么??
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。