How to work with submodules in Git
Wednesday, February 25, 2026
Managing dependencies on external Git repositories requires a way to include them in your project while keeping their history separate. With over 25 years of experience in software development and as the creator of CoreUI, I’ve used Git submodules in numerous projects to manage shared libraries, themes, and component packages. From my expertise, the most reliable approach is to use Git’s built-in submodule feature, which allows you to keep a Git repository as a subdirectory of another repository. This method maintains separate version control for each component while integrating them into your main project.