The 'git submodule' Command
Explore how to incorporate external Git repositories as submodules within your main project repository. Learn to initialize, add, and track submodules through hands-on examples, gaining clarity on managing dependencies and updates between repositories.
We'll cover the following...
Git submodules solve these external repository dependency issues with a little overhead. Now that you understand local and remote repositories, it will be much easier to grasp how submodules work.
Tracking copies
Git submodule commands are Git commands used to track copies of other repositories within your repository. The tracking is under your control (so you decide when it gets updated, regardless of how the other repository moves on), and the tracking is done within a file that is stored with your Git repository.
...Pay Attention Here!
Git submodules can be very confusing if you don’t