AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Git submodule alternative11/14/2023 ![]() Let’s continue with the awesomelibrary example and make some changes: When making changes to a submodule it is important to publish submodule changes and then update the parent repositories reference to the submodule. This means that submodules have their own branches and history. Once submodules are properly initialized and updated within a parent repository they can be utilized exactly like stand-alone repositories. This can be helpful if there are many submodules in a repo but they don't all need to be fetched for work you are doing. ![]() This enables a workflow of activating only specific submodules that are needed for work on the repository. git submodule init has extend behavior in which it accepts a list of explicit module names. This may seem redundant and lead to questioning git submodule init usefulness. The default behavior of git submodule init is to copy the mapping from the. Git clone /url/to/repo/with/submodules git submodule init git submodule update Git submodule Init The following is an example that creates an empty repo and explores git submodules. The git submodule add is used to add a new submodule to an existing repository. Again this works when updates are not too frequent.
0 Comments
Read More
Leave a Reply. |