How to make part of an existing Git repository a submodule January 9, 2024 by Tarik Today there’s a better way of doing this: git subtree See this answer.