Update a submodule to the latest commit

前端 未结 8 1073
北荒
北荒 2020-12-07 06:54

I have a project A which is a library and it is used in a project B.

Both projects A and B have a separate repository on github BUT inside B we have a submodule of A

8条回答
  •  北海茫月
    2020-12-07 07:22

    None of the above answers worked for me.

    This was the solution, from the parent directory run:

    git submodule update --init;
    cd submodule-directory;
    git pull;
    cd ..;
    git add submodule-directory;
    

    now you can git commit and git push

提交回复
热议问题