Вопрос

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