はじめに
モジュラーアプリケーション(Magentoなど)に基づいてプロジェクトをデプロイする場合、異なるリポジトリにあるプロジェクトにコードが共存するという事実に直面します。 PhpStormはこれについてかなり良い仕事をしています。 Githubにメインプロジェクトがあり、同じ場所にある1つの新しいモジュールと、SVNリポジトリにある1つのレガシーモジュールを使用するとします。
gitサブモジュールメカニズムを使用すると、複数のgitリポジトリを同時に操作できます。PhpStormでは、これにSVNリポジトリを追加することもできます。
私たちはプロジェクトを形成します
サブモジュールがまだないメインプロジェクトをローカルディスクに複製します。
git clone https://github.com/praxigento/z_git_submodules_main.git cd .\z_git_submodules_main
次のようなものが.gitmodulesファイルに表示されます。
[submodule "modules/mod_git"] path = modules/mod_git url = https:
gitサブモジュールが既に接続されているメインプロジェクトを複製する場合、追加でそれらを開始する必要があります。
git submodule init git submodule update
サブモジュールの削除に基づい
て :
git submodule deinit -f modules/mod01 git rm -f modules/mod01
SVNモジュールを個別に接続します。
svn co https://github.com/praxigento/z_mage_composer_mod_02/trunk modules/mod_svn
このファイル構造のようなものを取得する必要があります。

PhpStormを構成する
プロジェクトのリポジトリのすべてのマウントポイントをPhpStrom設定で指定します。

変更を処理する
各モジュールおよびプロジェクト自体のREADMEファイルに変更を加えます(合計3つのファイル)。

変更をリポジトリにコミットします。

gitリポジトリの場合、追加のプッシュプッシュの変更:

すべてのリポジトリの変更を確認します。

したがって、一度に複数のリポジトリに変更をコミットできます。
ローカルコードの更新:
