レポをバンドルし、ファイルシステムに repo.bundle ファイルを保存しました。このバンドルから、現在リモート URL を持つ .gitmodules ファイルを持っている別のレポのサブモジュールとして複製する必要があります。システムにローカルに保存されている git バンドルからクローンを作成するために、.gitmodules ファイルに次の変更を加えました。
[submodule "myrepo_path/submodule_path"]
path = myrepo_path/submodule_path
url = file:///home/myuser/MY-BUNDLES/repo.bundle
fetch = +refs/heads/*:refs/remotes/origin/*
ignore = all
ただし、git submodule init を実行すると、クローン作成は次のエラーで失敗します。
$ git submodule update --init
Cloning into '/home/myuser/Desktop/Repos/myrepo_path/submodule_path'...
fatal: too large to be a .git file: '/home/myuser/MY-BUNDLES/repo.bundle'
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
バンドルは 1.9G ファイルです。上記の方法でサブモジュールを初期化できるかどうか知りたいですか? git cloneまたは、私にとって唯一のオプションは、コマンドを使用して git バンドルから明示的に複製することです