我把一家公司的回购公司拆掉,开始工作;最初的分公司是master。在尝试git checkout时,我始终遇到以下错误(反斜杠=换行)
git -c diff.mnemonicprefix=false -c core.quotepath=false -c \
credential.helper=sourcetree checkout master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'. #so far, so good..
git -c diff.mnemonicprefix=false -c core.quotepath=false \
-c credential.helper=sourcetree submodule update --init --recursive
fatal: no submodule mapping found in .gitmodules for path 'vendor/omnipay/pin'
Completed with errors, see above我已经找到了这方面的答案,但所有这些都涉及到某个地方对submodule的引用,包括这是这里的。然而:
.git/config --根本不包含对子模块的引用vendor/omnipay/pin -这个目录是空的,没有隐藏的点文件。submodule。同样,其他帖子似乎不适用,因为没有引用/删除的文件或子模块行。这里有什么问题,我该如何解决?
发布于 2020-01-26 22:44:06
返回160000 commit 04e778e9882d4c40419263030068b69b93168供应商/总括/引脚。
它是一个"gitlink",是索引中的一个特殊条目,用于记录嵌套Git存储库的根树的sHA1。
这就是为什么文件夹显示为空的原因:它是嵌套存储库的占位符。
如果您有一个.gitmodules文件,应该有一个条目提到在哪里查找远程存储库,该存储库应该在该路径上签出。
如果没有,请至少尝试一个git rm vendor/omnipay/pin (没有尾随斜杠),然后是一个git submodule update --init --recursive
https://stackoverflow.com/questions/42422464
复制相似问题