2013-02-06 25 views
25

Khi tôi chạyKhông có ánh xạ submodule tìm thấy trong .gitmodules cho con đường

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

Nhưng tôi không có submodule Classes/lib/AFKissXMLRequestOperation trong Repos hiện

git config của tôi là:

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

và .gitmodules là:

[submodule "External/ios-SDNestedTable"] 
    path = External/ios-SDNestedTable 
    url = [email protected]:why/ios-SDNestedTable.git 
[submodule "External/PSStackedView"] 
    path = External/PSStackedView 
    url = [email protected]:why/PSStackedView.git 
+0

http://stackoverflow.com/questions/4185365/no-submodule-mapping-found-in-gitmodule-for-a-path-thats-not-a-submodule –

Trả lời

79

kiểm tra xem bạn có cài đặt thích hợp trong .git/modules không. Kể từ một vài phiên bản trước, git thêm một mục nhập ở đó.

Ngoài ra, cây có thể có đối tượng cam kết tại đường dẫn đó. Để loại bỏ nó, bạn có thể

git rm --cached Classes/lib/AFKissXMLRequestOperation 

nên loại bỏ nó một lần và mãi mãi.

+6

bạn thưa bạn, đã cứu tôi khỏi sự điên rồ nhất định! –

+0

giải thích khá rõ ràng, cảm ơn – Deliganli

+0

Tôi đã thực hiện một git rm --cách myFile nhưng bây giờ tôi không được kích hoạt để thực hiện git init trên máy chủ nơi nó đã được thực hiện. Tôi có một cụm 4 máy và chỉ có cái này là không làm gì cả. Làm thế nào để xây dựng lại bộ nhớ cache này? –

Các vấn đề liên quan