2015-11-04 78 views
1

我一直在使用它推出了以下錯誤的源代碼樹克隆一個項目沒有顯示:完成有錯誤,在源代碼樹

No submodule mapping found in .gitmodules for path 'frontend/bower_components/global' Completed with errors, see above.

有人告訴我,只是忽略的錯誤了,但項目沒有在SourceTree中顯示,我可以在win explorer中看到這些文件,但項目沒有顯示在源代碼樹中。我如何在sourcetree中獲得項目?

回答

0

我認爲找不到路徑'frontend/bower_components/global'的.gitmodules的映射。

$ git rm --cached frontend/bower_components/global 

然後再次更新子模塊。它應該工作正常。

http://en.saturngod.net/no-submodule-mapping-found-in-gitmodules

或者

使用以下命令

$ git submodule add [URL] [PATH_TO_SUBMODULE] 

添加子模塊,我希望這會幫助你顯示源代碼樹中的文件。