I have read this documentation and didn't find answer for subject question.

My remote repository consists 3rd party submodules, those submodules changed and changes should be pushed into the my repository. As well I need to fetch new data from submodules.

Does GIT provide something for that ?

有帮助吗?

解决方案

Your repo don't contain any submodule's code, it only store a pointer to some commit in your submodule

So, if you want to take in modifications from 3rd party submodules, you should $ cd /path/to/submodule/in/your/work/tree # enter your submodule directory $ git fetch origin # update $ git checkout origin/master # take in the modifications $ cd /path/to/your/work/tree $ git add /path/to/submodule/in/your/work/tree # add your modification for submodule pointer $ git commit -m "update xxx module to x.x.x.x" # commit

HOPE I CAN HELP YOU!

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top