필터 지우기
필터 지우기

How can I commit changes to a Matlab submodule?

조회 수: 6 (최근 30일)
Gianmarco Odorizzi
Gianmarco Odorizzi 2017년 12월 5일
댓글: Gianmarco Odorizzi 2017년 12월 20일
Good morning,
I have a Simulink Project under version control with GIT and I've added a submodule to it.
Parent repo > Submodule.
How can I commit and, subsequently, push my modification to the submodule's repo? Committing the parent repo and then pushing from Submodules > Push has no effect and I get "The target reference is already up to date no action required."
Thank you in advance.

채택된 답변

Tim Hosey
Tim Hosey 2017년 12월 18일
If you change your current directory to be within the submodule folder, you can then commit local changes to the submodule's file using MATLAB's current folder browser. If the submodule contains a Simulink Project you can open the project instead to commit the changes.
When the local changes have been committed you can use the "Submodules" control in the project to push any changes to the submodule's remote.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Project Management에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by