Git Submodule
Git サブモジュール
Gitサブモジュールは、あるリポジトリが別のGitリポジトリの特定のコミットを指すことを可能にします。親リポジトリもその見つけ方を保存します。
もう一つの例
アプリのリポジトリは、自身のリポジトリに保管されているファームウェアを使用します。親プロジェクトは、レビュー済みのファームウェアのコミットとそれを読み込むセットアップ手順を記録します。サブモジュールの最新ブランチをプルしても、親のポインタは自動的には更新されません。
主な部分
- 01スーパー・プロジェクト gitリンク
- 02サブモジュールURL
- 03固定コミット
以下の場合に使用します
あるリポジトリが、独立して管理されている別のリポジトリを正確なコミットにロックする必要がある場合にこの用語を使用します。
以下の場合は使用しないでください
リリース済みパッケージやコピーされたスナップショットでより簡単に所有権や更新ができる場合には、サブモジュールを避ける。
コードで使用する名前
gitlink + .gitmodules + nested repository 出荷前に
Before publishing, check the exact repository, branch, target, and diff. Keep unpublished work. Pass review and CI checks. Record conflict and data-loss risks, release order, traceability, recovery, and rollback.
Outcome:Complete the task with Git サブモジュール (Git Submodule)。 User context:アプリのリポジトリは、自身のリポジトリに保管されているファームウェアを使用します。親プロジェクトは、レビュー済みのファームウェアのコミットとそれを読み込むセットアップ手順を記録します。サブモジュールの最新ブランチをプルしても、親のポインタは自動的には更新されません。 Delivery concept or operation:Git サブモジュール (Git Submodule)。 Why it fits:あるリポジトリが、独立して管理されている別のリポジトリを正確なコミットにロックする必要がある場合にこの用語を使用します。 Do not use it when:リリース済みパッケージやコピーされたスナップショットでより簡単に所有権や更新ができる場合には、サブモジュールを避ける。 Delivery requirements: Name the code repository and target. List preconditions, changes, review and CI checks, conflict and data-loss risks, release order, and the rollback or recovery command. Repository safeguards: Keep unpublished work and a clear history. Do not run destructive steps without an explicit backup. Check the exact code diff and remote target before publishing. Acceptance criteria: Review the intended diff and pass all required checks. Keep the target version traceable. Practice failure recovery and keep published history clear. Evidence and limits (evidence boundary):その情報源にとって公式です。他のプラットフォームやチームはその用語を別の方法で使用する場合があります。 Unknowns to confirm: Repository, branch, team activity, release environment, approval owner, protected checks, and rollback target.
このリクエストを確認する
Review how Git サブモジュール (Git Submodule) is used now. Definition: Gitサブモジュールは、あるリポジトリが別のGitリポジトリの特定のコミットを指すことを可能にします。親リポジトリもその見つけ方を保存します。 Release checks: Before publishing, check the exact repository, branch, target, and diff. Keep unpublished work. Pass review and CI checks. Record conflict and data-loss risks, release order, traceability, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.