Next.js starter your AI actually understands. Ship internal tools in days not weeks. Pre-order $199 $499 → [Get it now]

How to add a submodule in Git

Managing shared code across multiple projects often leads to code duplication and synchronization issues, especially when working with libraries or components used in several repositories. With over 25 years of experience in software development and as the creator of CoreUI, I’ve managed complex multi-repository setups for component libraries, documentation sites, and enterprise applications. From my expertise, Git submodules provide the most reliable solution for including external repositories within your project while maintaining independent version control. This approach allows you to track specific commits of external code, ensuring consistency and reproducibility across your development workflow.

Read More…
Subscribe to our newsletter
Get early information about new products, product updates and blog posts.
How to loop through a 2D array in JavaScript
How to loop through a 2D array in JavaScript

The Best Bootstrap Alternative for Developers in 2025
The Best Bootstrap Alternative for Developers in 2025

How to loop inside React JSX
How to loop inside React JSX

How to Use Bootstrap Modal in Vue 3 – Clean Integration with CoreUI
How to Use Bootstrap Modal in Vue 3 – Clean Integration with CoreUI

Answers by CoreUI Core Team