Using git submodules
Aug 04, 2018
Suppose you have a repository called mainrepo and another repository called subrepo that you want to use inside mainrepo. You can just clone subrepo inside mainrepo and use it. However, if subrepo gets updated frequently, then you will have to clone it everytime and replace it inside mainrepo. If you want to view the history of commits made to subrepo , then you need to go to the remote repository where you cloned it from and see it there.