Update a submodule to the latest commit

前端 未结 8 1096
北荒
北荒 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:15

    My project should use the 'latest' for the submodule. On Mac OSX 10.11, git version 2.7.1, I did not need to go 'into' my submodule folder in order to collect its commits. I merely did a regular

    git pull --rebase 
    

    at the top level, and it correctly updated my submodule.

提交回复
热议问题