3つのオプションがあります
オプション 1.すでに行ったこと (最も妥当なオプション)。SVN の両方のプロジェクトを 2 つの個別の Git リポジトリに変換します。次に、GitLab、Atlassian Bitbucket Server、またはその他の Git サーバー ソフトウェアを使用してリポジトリへのアクセスをセットアップします。
オプション 2. SVN リポジトリ全体を単一のディレクトリとして扱います。
subgit configure --svn-url <svn_server>/SVN-Repo --layout directory C:\GitRepos\SVN-Repo\repo.git
subgit install C:\GitRepos\SVN-Repo\repo.git
その後、実行できます
subgit uninstall C:\GitRepos\SVN-Repo\repo.git
継続的な同期が必要ない場合。この場合、Git リポジトリは SVN-Repo をルートとします。
オプション 3.両方のプロジェクトからのブランチを持つ 1 つの Git リポジトリ。
subgit configure --svn-url <svn_server>/SVN-Repo C:\GitRepos\SVN-Repo\repo.git
次に、編集repo.git/subgit/config
して設定します
trunk = Project1/trunk:refs/heads/project1-master
branches = Project2/trunk:refs/heads/project2-master
branches = Project1/branches/*:refs/heads/project1-*
branches = Project2/branches/*:refs/heads/project2-*
shelves = shelves/*:refs/shelves/*
tags = Project1/tags/*:refs/tags/project1-*
tags = Project2/tags/*:refs/tags/project2-*
次に実行します
subgit install C:\GitRepos\SVN-Repo\repo.git
その後、実行できます
subgit uninstall C:\GitRepos\SVN-Repo\repo.git
継続的な同期が必要ない場合。
project1-
この場合、プロジェクトで始まり、プロジェクトにproject2-
対応するブランチを持つ 1 つの Git リポジトリがあります。/の代わりにproject1-
/project2-
を使用することもできます。project1/
project2/
したがって、必要なものに応じて、これらの 3 つのオプションのいずれかを選択できますが、最初のオプションが最適です。