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