How to set Git submodules at fixed commits / tags

22 ビュー (過去 30 日間)
Marcelo
Marcelo 2026 年 1 月 9 日
コメント済み: Broy 2026 年 1 月 16 日 8:30
I am moving from SVN and into GIT for some Simulink projects, and I am encontering some challenges to properly set up.
In SVN, we have a structure such as:
trunk/
- Project_1/
- Externals/
- Lib_A/ --> external to tags/Lib_A_V2
- Lib_B/ --> external to tags/Lib_B_V1
- Project1.slx
- Project1.prj
- Lib_A/ --> development of lib A
- Lib_B/ --> development of lib B
tags/
- Lib_A_V1
- Lib_A_V2
- Lib_A_V3
- Lib_B_V1
- Lib_B_V2
- Lib_B_V3
- ...
With GIT, there will be no more "tags/" separated folder, as it will be part of the master branch for Lib_A and Lib_B. Is it possible to configure the submodule to a specific tag / commit from the Simulink Project interface?
  1 件のコメント
Broy
Broy 2026 年 1 月 16 日 8:30
@Marcelo, Yes, you can configure a submodule to point to a specific tag or commit hash within Git. Here are a few resources that you can refer to:

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSource Control についてさらに検索

タグ

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by