我的項(xiàng)目中引用了我自己寫的一個(gè)插件,在github的windows客戶端提交時(shí)提示:
請(qǐng)問我該怎么做才能提交呢?
方法一
刪除你的VistorUserCenter目錄
進(jìn)入項(xiàng)目根目錄
運(yùn)行g(shù)it submodule add 你的vistor插件的git地址 src/zb_users/plugin/VistorUserCenter
方法二
刪除VistorUserCenter下的.git目錄
出現(xiàn)這種情況的原因是沒有正確添加submodule吧,
項(xiàng)目根目錄下是否有.gitmodules文件?里面大致內(nèi)容應(yīng)該是這樣的:
[submodule "src/zb_users/plugin/VistorUserCenter"]
path = src/zb_users/plugin/VistorUserCenter
url = https://github.com/xxx/VistorUserCenter
還有src/zb_users/plugin/VistorUserCenter目錄下應(yīng)該沒有.git目錄