在路径的.gitmodules中没有找到子模块映射

当我跑步

git submodule update
No submodule mapping found in .gitmodules for path 'Classes/lib/AFKissXMLRequestOperation'

但是我在当前的回购中没有子模块Classes/lib/AFKissXMLRequestOperation

我的git配置是:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
    ignorecase = true
    precomposeunicode = false
[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = git@github.com:why_ios.git
[branch "master"]
    remote = origin
    merge = refs/heads/master
[submodule "External/ios-SDNestedTable"]
    url = git@github.com:why/ios-SDNestedTable.git
[submodule "External/PSStackedView"]
    url = git@github.com:why/PSStackedView.git

和.gitmodules是:

[submodule "External/ios-SDNestedTable"]
    path = External/ios-SDNestedTable
    url = git@github.com:why/ios-SDNestedTable.git
[submodule "External/PSStackedView"]
    path = External/PSStackedView
    url = git@github.com:why/PSStackedView.git

检查您是否在.git/modules中也有适当的设置。 自从几个版本以前,git在那里添加了一个条目。

另外,树可能在该路径上有一个提交对象。 为了摆脱它,你可以

git rm --cached Classes/lib/AFKissXMLRequestOperation

应该彻底摆脱它。

链接地址: http://www.djcxy.com/p/92359.html

上一篇: No submodule mapping found in .gitmodules for path

下一篇: Git is consistently deleting 2 directories from my repository, how can I troubleshoot this?