git - How to commit a project with Submodule?
phpcn_u1582
phpcn_u1582 2017-05-02 09:40:41
0
1
682

My project references a plug-in I wrote myself. When submitting on the windows client of github, it prompts:

What should I do to submit?

phpcn_u1582
phpcn_u1582

reply all(1)
巴扎黑

Method 1
Delete your VistorUserCenter directory
Enter the project root directory
Run git submodule add the git address of your vistor plug-in src/zb_users/plugin/VistorUserCenter
Method 2
Delete the .git directory under VistorUserCenter

The reason for this situation is that the submodule was not added correctly.
Is there a .gitmodules file in the project root directory? The general content inside should be like this:

[submodule "src/zb_users/plugin/VistorUserCenter"]
    path = src/zb_users/plugin/VistorUserCenter
    url = https://github.com/xxx/VistorUserCenter

There should be no .git directory in the src/zb_users/plugin/VistorUserCenter directory

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template