{"id":19681209,"url":"https://github.com/marfullsen/demo_submodules_main","last_synced_at":"2025-07-15T13:20:43.529Z","repository":{"id":166081075,"uuid":"641500673","full_name":"Marfullsen/demo_submodules_main","owner":"Marfullsen","description":"Demo of git submodules, main repo.","archived":false,"fork":false,"pushed_at":"2023-05-16T20:53:33.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T09:18:50.661Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Marfullsen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-16T15:43:55.000Z","updated_at":"2023-05-16T15:54:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"af4994b1-3129-4546-88d8-6be90d6e6a27","html_url":"https://github.com/Marfullsen/demo_submodules_main","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Marfullsen/demo_submodules_main","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marfullsen%2Fdemo_submodules_main","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marfullsen%2Fdemo_submodules_main/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marfullsen%2Fdemo_submodules_main/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marfullsen%2Fdemo_submodules_main/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Marfullsen","download_url":"https://codeload.github.com/Marfullsen/demo_submodules_main/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marfullsen%2Fdemo_submodules_main/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265437625,"owners_count":23765124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T18:07:13.980Z","updated_at":"2025-07-15T13:20:43.485Z","avatar_url":"https://github.com/Marfullsen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Submodules in git\nDemo of git submodules, main repo.\n\n## What is a submodule?\n\nGit submodules allow you to include another Git repository as a subdirectory within your own repository. This is useful when you want to include external code or libraries as part of your project, while still keeping them separate and allowing independent development.\n\n## How to use\n\n### First use\n\nClone the repo **using the recursive flag**.\n\n```\ngit clone --recursive https://github.com/Marfullsen/demo_submodules_main.git\ncd demo_submodules_main\n```\n\n### Already cloned, but update in submodule needed\n\nUpdate the **submodule**:\n\n```\ngit submodule update --init\n```\n\nUpdate the **submodule** manually:\n\n```\ncd external\\demo_submodules_external\ngit pull origin master\ncd ../../\ngit commit -am \"Updated submodule\"\n```\n\n### Submodule subcommands\n\n|Subcommand|Description|\n|:---:|:---|\n|add|Add a new submodule to the repository|\n|init|Initialize submodules for the repository|\n|update|Update the contents of all submodules|\n|foreach|Run a Git command in each submodule|\n|sync|Update the URL of a submodule to match the .gitmodules file|\n|status|Show the status of the submodule|\n|summary|Show a summary of the submodule commits|\n|deinit|De-initialize submodules from the repository|\n\n## References\n- [7.11 Git Tools - Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules)\n- [Git docs - git-submodule](https://git-scm.com/docs/git-submodule)\n- [Main repo.](https://github.com/Marfullsen/demo_submodules_main.git)\n- [External repo.](https://github.com/Marfullsen/demo_submodules_external.git)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarfullsen%2Fdemo_submodules_main","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarfullsen%2Fdemo_submodules_main","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarfullsen%2Fdemo_submodules_main/lists"}