Submodule that is added to the main repository. Submodule to the main repository, you only add information about the When you add a submodule in Git, you don't add the code of the This is a lot more convienient than copy-pasting the code into the With this approach you can easily update thoseĬomponents in all the repositories that added them as a submodule. Useful if you have multiple repositories that share the sameĬomponents. You can add the submodule to multiple repositories. (commits are specific to a certain component). Useful if you have a codebase with big components, you could make aĬomponent a submodule. You can separate the code into different repositories. A couple of advantages of using submodules: Repository embedded in your main repository. In Git you can add a submodule to a repository. Git Submodules basic explanation Why submodules?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |