亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

git - 如何提交帶有Submodule的項(xiàng)目?
phpcn_u1582
phpcn_u1582 2017-05-02 09:40:41
0
1
793

我的項(xiàng)目中引用了我自己寫的一個(gè)插件,在github的windows客戶端提交時(shí)提示:

請(qǐng)問我該怎么做才能提交呢?

phpcn_u1582
phpcn_u1582

全部回復(fù)(1)
巴扎黑

方法一
刪除你的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目錄

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板