0

これを行うことが可能であれば、私は知りたいです:

  1. git clone --recursive <repository with submodule>
  2. git remote add fat-repository <path>
  3. ???
  4. git add -A && git commit -m "Test" && git push fat-repository master

ステップ 3では、リポジトリのサブモジュールを解除し、submoduleコンテンツを保持しますが、それがサブモジュールであったという痕跡をすべて削除します。

ありがとう!

4

2 に答える 2

0

https://www.atlassian.com/git/articles/core-concept-workflows-and-tips

セクション: サブモジュールをプロジェクトに統合するにはどうすればよいですか?

これには、サブモジュールからファット git リポジトリを作成する正しい方法が含まれています。

  1. git rm --cached submodule_path (no trailing slash)
  2. git rm .gitmodules
  3. rm -rf submodule_path/.git
  4. git add submodule_path; git commit -m "remove submodule"

これらの手順を教えてくれた Nick Cross に感謝します。

于 2020-07-24T16:01:36.067 に答える